Created
January 11, 2019 03:55
-
-
Save BCEvanFang/0676f6a2825122c7f2c898dbe2420e01 to your computer and use it in GitHub Desktop.
git reset
This file contains hidden or 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
| # Undo last commit and KEEP all changes | |
| git reset --soft HEAD~1 | |
| # Undo last commit and REMOVE all changes | |
| git reset --hard HEAD~1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment