枚举两个提交之间有更改的文件名,方式任选其一:
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 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。