Created
May 24, 2016 10:10
-
-
Save rendfall/3e4f98531b16f850880214d54ba4ae55 to your computer and use it in GitHub Desktop.
[GIT] Undo custom bad 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 checkout <bad-commit> | |
| # ... make your changes ... | |
| git commit --amend -v | |
| git rebase --onto HEAD <bad-commit> <checked-out-branch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment