Explorar o código

:sparkles: 添加 git 命令

nick %!s(int64=6) %!d(string=hai) anos
pai
achega
3292d88fbc
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  1. 14 0
      git.md

+ 14 - 0
git.md

@@ -223,4 +223,18 @@ git stash drop #删除最近的暂存代码
 git stash drop stash@{0} #删除指定 id 的暂存代码
 
 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
 ```