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

陪她去流浪 桃子 2016年04月23日 编辑 阅读次数:2147

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

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

标签:git