git 对比文件差异

通常 git diff COMMIT_ID_1 COMMIT_DI_2 查看

只查看更改过的文件目录

git diff --name-only COMMIT_ID_1 COMMIT_DI_2

快捷用法就是:

git diff --name-only HEAD HEAD^

对比和上次提交时的改动