Created
October 4, 2012 14:43
-
-
Save laszlomiklosik/3833968 to your computer and use it in GitHub Desktop.
Git: undo git rm for a single file
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
git checkout HEAD path/to/file | |
# Without HEAD it's not working because the file is not there anymore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! It's amazing how simple this command actually is. Why is it so hard to find this in the man pages?!