Created
October 13, 2016 18:42
-
-
Save kireal/d9deefdd9906201194c1353bde10dfde to your computer and use it in GitHub Desktop.
Git restore deleted files
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
| git rev-list -n 1 HEAD -- <file_path> | |
| git checkout <deleting_commit>^ -- <file_path> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment