Rewording Commit Message in Middle
Last updated
Last updated
Interactive rebase needed to change the commit message for commits in middle like:
In this case, we right click the parent commit my awesome changes
and select the interactive rebase menu.
Git then will popup the Editor with the content like below (the commits show in reverse order, the last is the most recent commit).
We now change the pick
to r
or reword
(Unfortunately, we can't change the commit message here directly) and save and close the Editor.
Git will popup the Editor again asking for the new commit message for the first commit. Now put the new message and close the Editor and do the same thing for the second commit.
Commandline: