有多种方法可以更改稍后提交的消息:
git commit --amend # for the most recent commit
git rebase --interactive master~2 # but requires *parent*
如何更改第一个提交(没有父提交)的提交消息?
从 Git 版本开始1.7.12 https://raw.github.com/git/git/master/Documentation/RelNotes/1.7.12.txt,您现在可以使用
git rebase -i --root
文档 https://git-scm.com/docs/git-rebase#Documentation/git-rebase.txt---root
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)