In Eclipse, how to edit commit message of local commit with EGit

Yes, we can edit commit message,

If you recognize that you missed something when committing a change you may edit commit message: open the staging view or commit dialog again

and specify that the current commit shall “amend” the previous commit in the current branch.
edit commit message
The new commit will then replace the previous one. This feature is often used to correct incorrect commits before they are published to other repositories.

Note: do not amend commits if they have already been published to a shared repository since this may disturb others if they already based their changes on the published change.

above is the excerpts from the
Eclipse documentation
Egit User guide

Cheers.. 🙂

You may be also interested in

Leave a Reply

Your email address will not be published. Required fields are marked *