Last active
August 29, 2015 14:01
-
-
Save elventear/2424f4d4f8e67e73ef79 to your computer and use it in GitHub Desktop.
Search for a delete git in file in history
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://stackoverflow.com/questions/7203515/how-to-locate-a-deleted-file-in-the-commit-history | |
| # Search for all instances of the file | |
| git log --all -- <path-to-file> | |
| # Display the contents of the file at SHA | |
| git show <SHA> -- <path-to-file> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment