我試圖編輯舊的提交消息,如解釋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