git: show all files changed between two commits

前端 未结 6 393
旧时难觅i
旧时难觅i 2021-01-30 00:28

A riff on git: show all changed files between two commits: I want a listing of all files that have been changed between two commits, even if they are now the same (ie, changed a

6条回答
  •  执念已碎
    2021-01-30 01:16

    This one is similar to igorw's, but it avoids the removal of the SHA via grep:

    git log --pretty='format:' --name-only HEAD^^..HEAD | sort -u
    

    If you additionally want to see how the files were modified, replace --name-only with --name-status.

提交回复
热议问题