Last active
May 27, 2018 16:11
-
-
Save marcieltorres/23f321552fa404d69415b89354cf641e to your computer and use it in GitHub Desktop.
git revert to commit
This file contains 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
git reset <commit id> | |
git reset --soft HEAD@{1} | |
git commit -m "Revert to <commit id>" | |
git reset --hard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment