git: show all files changed between two commits

前端 未结 6 385
旧时难觅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:30

    I think this command is your answer:

    git diff --stat abc123 xyz123  # where abc123 and xyz123 are SHA1 hashes of commit objects
    

    Straight from the git community book:

    If you don't want to see the whole patch, you can add the '--stat' option, which will limit the output to the files that have changed along with a little text graph depicting how many lines changed in each file.

提交回复
热议问题