最佳答案
如何编辑或改写合并提交的消息?
如果git commit --amend是最后一次提交(HEAD),那么它可以工作,但是如果它出现在HEAD之前呢?
git rebase -i HEAD~5未列出合并提交。