How to amend a commit message in git?

This question already has an answer here:

  • How to edit/amend commit messages for commits previous to the last in Git? 1 answer
  • Changing git commit message after push (given that no one pulled from remote) 9 answers

  • It seems you assume -a is the same as --amend , which is not the case.
    You almost had the right command which simply is git commit --amend -m 'does work' .

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

    上一篇: 我如何推送不改变代码的Git提交

    下一篇: 如何在git中修改提交消息?