Last active
April 27, 2017 17:49
-
-
Save imRohan/538f4e627a665b60a18a480427d9bede to your computer and use it in GitHub Desktop.
Git Undo
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
How to undo published commits | |
git reset (sha) | |
git checkout (all files that need to be undone) | |
git commit -am (message for reset) | |
git push -f origin (branch name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment