Last active
October 8, 2018 07:10
-
-
Save byronmejia/80be7ae8da5cbb6cf9e512ee44e39094 to your computer and use it in GitHub Desktop.
Undo Last 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
# Reset Head back one commit | |
git reset HEAD~ | |
# Make Changes as required, then: | |
git commit -m "A Helpful Commit Message" | |
# Forceful Push (required if a remote branch has diverged) | |
git push -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment