Skip to content

Instantly share code, notes, and snippets.

@lucasbento
Created June 4, 2016 12:20
Show Gist options
  • Save lucasbento/26b76e3f59897844c3349b27c03f956b to your computer and use it in GitHub Desktop.
Save lucasbento/26b76e3f59897844c3349b27c03f956b to your computer and use it in GitHub Desktop.
Just GIT things
# Reset to a previous commit ignoring any work done
git reset --hard COMMIT_HASH
# Reset to a previous commit keeping work
git stash
git reset --hard COMMIT_HASH
git stash pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment