我试图编辑旧的提交消息,如解释here。在Git上更改旧的提交消息
事情是,现在,当我试图运行rebase -i HEAD~5
它说interactive rebase already started
。
于是我尝试:git rebase --continue
但得到这个错误:
error: Ref refs/heads/master is at 7c1645b447a8ea86ee143dd08400710c419b945b but expected c7577b53d05c91026b9906b6d29c1cf44117d6ba
fatal: Cannot lock the ref 'refs/heads/master'.
任何想法?
使用--abort命令。谢谢 – 2009-12-11 13:54:48
另外,在修改第一次提交之后,'git rebase --continue'会进入重新绑定过程中的下一个任务。 – 2010-08-23 13:42:08
将[link](https://help.github.com/articles/changing-a-commit-message/)添加到github wiki文章中以更改提交消息 – Joy 2017-11-18 18:49:51