Created
July 9, 2018 19:25
-
-
Save takiguri/8f3a4bc859c9a4adf76370666791cc9d to your computer and use it in GitHub Desktop.
Amending non-head commits
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
sh: git rebase 'commit-hash-to-amend^' | |
text editor: replace 'pick' to 'edit' on the target commit hash. | |
text editor: save and quit | |
code: Apply all changes to amend. | |
sh: git commit --all --amend --no-edit | |
sh: git rebase --continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment