Last active
August 29, 2015 14:01
-
-
Save ashby/f4616f68eb3d170fd6b1 to your computer and use it in GitHub Desktop.
GIT: Reset Hard and Roll Back
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
| git reset --hard 258ba52 | |
| git reset --soft HEAD@{1} | |
| git commit -m "revert to commit 258ba52" | |
| git reset --hard | |
| git push -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment