Skip to content

Instantly share code, notes, and snippets.

Created October 10, 2012 04:38
What would you like to do?
Using git checkout to revert to a certain commit hash
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