Skip to content

Instantly share code, notes, and snippets.

@chrisgfortes
Created December 2, 2019 16:48
Show Gist options
  • Save chrisgfortes/8080bac9d6897d2624eb26f0e9b5b344 to your computer and use it in GitHub Desktop.
Save chrisgfortes/8080bac9d6897d2624eb26f0e9b5b344 to your computer and use it in GitHub Desktop.
Find when a file was deleted in Git
// You can find the last commit which deleted file as follows:
git rev-list -n 1 HEAD -- [file_path]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment