如何在git中重新提交

use*_*753 1 git

我已经用git做了一些更改。现在,我想更改提交文本。有可能这样做吗?我正在使用Eclipse git和gittortoise

the*_*rit 6

您可以使用git commit --amend -m“ message”或执行等效的操作:

$ git reset --soft HEAD
$ ... do something else to come up with the right tree ...
$ git commit -c ORIG_HEAD
Run Code Online (Sandbox Code Playgroud)