如何在git中修改提交消息?

这个问题在这里已经有了答案:

  • 如何编辑/修改Git中最后一个提交之前的提交消息? 1个答案
  • 推后更改git commit消息(因为没有人从远程拉出)9个答案

  • 看起来你认为-a和 - --amend一样, --amend并非如此。
    你几乎有正确的命令,简单地说就是git commit --amend -m 'does work'

    链接地址: http://www.djcxy.com/p/49847.html

    上一篇: How to amend a commit message in git?

    下一篇: How to change the message of a pushed commit