Created
September 29, 2019 01:37
-
-
Save dhonx/5e8bfb13c3f8da8c9eea5f819d701a95 to your computer and use it in GitHub Desktop.
Revert Git 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
# Checkout the desired branch | |
git checkout <branch> | |
# Undo the desired commit | |
git revert <commit> | |
# Update the remote with the undo of the code | |
git push origin <branch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment