Skip to content

Instantly share code, notes, and snippets.

@l1x
Created October 10, 2012 04:38
Embed
What would you like to do?
Using git checkout to revert to a certain commit hash
#http://stackoverflow.com/a/6457473/127508
git checkout 56e05fced -- .
git add .
git commit -m 'Revert to 56e05fced'
And to prove that it worked:
git diff 56e05fced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment