How can I list all the deleted files in a Git repository?

后端 未结 8 783
不思量自难忘°
不思量自难忘° 2020-11-30 16:13

I know Git stores information of when files get deleted and I am able to check individual commits to see which files have been removed, but is there a command that would gen

8条回答
  •  无人及你
    2020-11-30 17:03

    git log --diff-filter=D --summary
    

    See Find and restore a deleted file in a Git repository

    If you don't want all the information about which commit they were removed in, you can just add a grep delete in there.

    git log --diff-filter=D --summary | grep delete
    

提交回复
热议问题