Skip to content

Instantly share code, notes, and snippets.

@emarashliev
Last active August 29, 2015 14:14
Show Gist options
  • Save emarashliev/1cd7336f2f6f54a0775c to your computer and use it in GitHub Desktop.
Save emarashliev/1cd7336f2f6f54a0775c to your computer and use it in GitHub Desktop.
Change commit messages of past Git commits
git rebase -i [COMMIT BEFORE THE FIRST YOU WANT TO EDIT]
# Mark all messages to be changed with "edit".
# Git will start the rebasing and stop at every marked commit.
git commit -amend -m "new message"
git rebase -continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment