In Eclipse/EGit is there a way to edit commit message of unpushed/local commit?

Grzegorz Oledzki picture Grzegorz Oledzki · Jan 31, 2014 · Viewed 25.8k times · Source

Using Eclipse/EGit how do I edit a commit message of a commit I've made locally, but haven't pushed to the repository yet?

Answer

VonC picture VonC · Jan 31, 2014

That would be the "Amending Commits" section of the EGit User Guide:

open the Staging View or Commit Dialog again and select the option Amend previous commit in the toolbar.

See also this tutorial:

Git amend allows to adjust the last commit.
For example you can change the commit message.
The Git Staging view allows you to perform the Git amend command via the highlighted button in the following screenshot.

See more about git commit --amend in general at "The git commit --amend Command".

http://www.vogella.com/tutorials/EclipseGit/images/xegitamend10.png.pagespeed.ic.m-4qbTQTEv.png

99sono adds in the comments:

I use:

Team Synchronizing Prespective > History View > Modify
(submenu) > Rework .
Finally this opens a popup where I can edit the old commit message.