2015-04-25 44 views
-1

我想編輯推送提交的提交消息。在EGit中編輯推送提交消息

我試過使用「恢復提交」按鈕,但得到這個錯誤:

An internal error occurred Cannot revert commit '9b424b08c83baffd18c2d5dffbe5bdb902c0cf63' because it has 0 parents, only commits with exactly one parent are supported

注:這是初始提交。

回答

0

嘗試git commit --amend。它將允許您更改上次提交的提交消息。更多信息here

+0

但我不想編輯我最後一次提交。我想編輯第一個。 – Tarthalion

+0

在這種情況下,您可以使用交互式底座。 http://schacon.github.io/history.html – amdalal

相關問題