Created
September 26, 2018 08:18
-
-
Save mahbub-shohag/25121892951ccab09ac00040901b6c47 to your computer and use it in GitHub Desktop.
This file contains 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
#Use git log --diff-filter=D --summary to get all the commits which have deleted files and the files deleted; | |
#Use git checkout $commit~1 filename to restore the deleted file. | |
Where $commit is the value of the commit you've found at step 1, e.g. e4cf499627 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment