Eclipse

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

We can edit commit message,

If you happen to recognize that you missed to mention any important info in a commit message, while committing a code change you may edit commit message. As below

Open the staging view or commit dialog again
amend_commit1

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.