Skip to content

Instantly share code, notes, and snippets.

@willgarcia
Created August 2, 2014 09:57
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 willgarcia/f4567d2e326b3b927518 to your computer and use it in GitHub Desktop.
Save willgarcia/f4567d2e326b3b927518 to your computer and use it in GitHub Desktop.
git edit old commit messages
git rebase -i HEAD~(count)
# pick 123456 bad message
->
# edit 123456 bad message
git commit --amend
git rebase --continue
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment