Last active
October 26, 2018 17:57
-
-
Save Chrispassold/7a65996ef8e3fc38c684a2b973ef7003 to your computer and use it in GitHub Desktop.
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
https://stackoverflow.com/a/42903805 | |
Delete the most recent commit, keeping the work you've done: | |
git reset --soft HEAD~1 | |
Delete the most recent commit, destroying the work you've done: | |
git reset --hard HEAD~1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment