Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Git: undo git rm for a single file
git checkout HEAD path/to/file
# Without HEAD it's not working because the file is not there anymore
Copy link

dooglio commented Nov 13, 2016

Thank you! It's amazing how simple this command actually is. Why is it so hard to find this in the man pages?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment