An Easy Way to Find Deleted Files in Bitbucket, GitHub and GitHub Enterprise By Terrence Chen on March 23, 2016

Finding deleted files with git is pretty easy, if you remember what to look for.

If you remember the path to the deleted file, you can execute:

git log --all -- <path-to-deleted-file>

If you only remember the file name, you can execute:

git log --all -- **/<filename>

If the above scenarios do not apply, you can always try sifting through the deleted files.

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

However, if you need a helping hand, to help jog your memory, you might want to try our Changes Tree, which contains every change, from every commit. To access the tree, goto Bitbucket, GitHub, or GitHub Enterprise's commits page and select Changes. And from there, you can follow the grey files and folders, to see who deleted what and when.

If you think our Changes Tree is interesting, make sure to checkout GitHub+GitSense and Bitbucket+GitSense to see how else, we are reimagning Bitbucket, GitHub and GitHub Enterprise browsing.