Created
December 20, 2015 20:26
-
-
Save fokosun/cff5aa2046e330ae4bd8 to your computer and use it in GitHub Desktop.
If your commit is not the most recent one
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
git rebase -- interactive $parent_of_flawed_commit | |
An editor will come up, with a list of all commits since the one you gave. Change the commit anyway you like now: | |
git commit --amend | |
git rebase --continue | |
git rebase --interactive lets you correct commits no matter how long ago they were. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment