Toby Toby - 1 year ago 110
Git Question

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

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 generate a list of every deleted file across a repository's lifespan?

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

See Restore a deleted file in a Git repo

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download