How do I edit or reword a merge commit\'s message?
git commit --amend works if it\'s the last commit made (HEAD), but what if it comes befo
git commit --amend
HEAD
For current Git versions (Mai 2020):
git rebase -i -r ,
git rebase -i -r
then replace in the editor merge -C ... with merge -c ....
merge -C ...
merge -c ...
This will open the commit message in the editor during rebasing, where you can change it.
(Thanks to VonC for the hint.)