Created
May 28, 2019 23:49
-
-
Save kevinhooke/d98445a85e456ba181e2da70cc4dfd40 to your computer and use it in GitHub Desktop.
git update last x commit messages
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 -i HEAD~x #where x = last x commits to update | |
# change pick to e, e=edit to indicate which to update | |
#for each commit to update: | |
git commit --amend | |
git rebase --continue | |
#repeat above 2 steps until all seelcted with e are updated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summarized from steps here: https://jacopretorius.net/2013/05/amend-multiple-commit-messages-with-git.html