Last active
March 5, 2019 21:01
-
-
Save MarkyMarkMcDonald/b17645e7f23969c6c528a8d222d4ec4e to your computer and use it in GitHub Desktop.
Amending to an old commit
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
amend-ng () { | |
SHA=$1 | |
git commit --fixup $SHA && | |
GIT_EDITOR="cat" git rebase --autosquash --interactive $SHA^ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment