TLDR Web Dev · QUICK LINKS

GITHUB TRICK TO FIND THE COMMIT THAT DELETED A FILE

devblogs.microsoft.com2 min read

Summary from the TLDR Web Dev newsletter

You can use git log -- /path/to/deleted/file to find the commit that deleted a file in your local repo, and you can do the same on a hosted repo with https://github.com/⟦user⟧/⟦project⟧/commits/⟦branch⟧/⟦path/to/deleted/file⟧.