[GIT常用命令] 枚举两个提交之间有更改的文件名

枚举两个提交之间有更改的文件名,方式任选其一:

git diff --name-only HEAD^ HEAD
git diff --name-only SHA1 SHA2
git diff --name-only HEAD~10 HEAD~5

参考:git - How to list the file names only that changed between two commits? - Stack Overflow

如果文章有帮助到你,请我喝杯冰可乐吧~

发表于:2016年4月23日 ,阅读量:913 ,标签:git