Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinhooke/d98445a85e456ba181e2da70cc4dfd40 to your computer and use it in GitHub Desktop.
Save kevinhooke/d98445a85e456ba181e2da70cc4dfd40 to your computer and use it in GitHub Desktop.
git update last x commit messages
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
@kevinhooke
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment