Created
July 1, 2012 05:53
-
-
Save giosakti/3027029 to your computer and use it in GitHub Desktop.
[Git] how to undo last commit
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
git commit ... | |
git reset --soft HEAD^ | |
edit | |
git add ... | |
git commit -c ORIG_HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment