I'm using git rebase -i --rebase-merges <commit>
to change some commit messages, which works fine. But the merge commits I'd like to preserve had changes or conflict solutions; is there an easy way to redo them?
My current work around is the following:
- in the interactive rebase overview, change
merge -C <commit>
tomerge -c <commit>
to ensure the merge commit is not automatically committed - when the merge commit is up, checkout the state of the original merge:
git checkout <commit> -- .
(-- .
is needed to prevent HEAD being resetted to ) - review the staging area
- continue the rebase