Created
June 4, 2016 12:20
-
-
Save lucasbento/26b76e3f59897844c3349b27c03f956b to your computer and use it in GitHub Desktop.
Just GIT things
This file contains hidden or 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
# 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