List all deleted files in the repository

Posted . Visible to the public.

You might want to restore them, you might want to double check some merge behavior, in any case it’s quite useful to be able to list all the files that have been deleted in your repository. Here’s how to go about it:

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

If you want to restore some of them see this.

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
Jonathan Knapp
Posted by Jonathan Knapp to Knowledge is Power! (2012-12-05 18:17)