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