✨ 添加 git 命令
This commit is contained in:
parent
24b66484b7
commit
3292d88fbc
14
git.md
14
git.md
@ -223,4 +223,18 @@ git stash drop #删除最近的暂存代码
|
|||||||
git stash drop stash@{0} #删除指定 id 的暂存代码
|
git stash drop stash@{0} #删除指定 id 的暂存代码
|
||||||
|
|
||||||
git stash clear #清空所有暂存代码
|
git stash clear #清空所有暂存代码
|
||||||
|
```
|
||||||
|
|
||||||
|
__实用不常用命令__
|
||||||
|
|
||||||
|
```
|
||||||
|
git shortlog -sn #查看成员提交次数
|
||||||
|
|
||||||
|
git whatchanged --since='2 weeks ago' #查看指定时间的提交记录
|
||||||
|
|
||||||
|
git diff --name-only --diff-filter=U | uniq | xargs $EDITOR #查看所有冲突文件
|
||||||
|
|
||||||
|
#删除最近一次提交中文件并修改提交信息
|
||||||
|
git rm —-cached file_name
|
||||||
|
git commit —-amend
|
||||||
```
|
```
|
Loading…
x
Reference in New Issue
Block a user