eclipsegitegit

Select an earlier commit message when commiting in EGit in Eclipse IDE?


In EGit inside Eclipse IDE, I am missing the feature of a "commit message history", ie. being able to select one of the most recent commit messages for a new commit, a feature that I quite often use in CVS/SVN.

I see that in Eclipse IDE preferences at Git > Committing there ist a "Maximum number of commit messages in history". This hints at such a feature being present.

I just could not find/google how to access it? What would that option do otherwise? I also find my recent commits stored in the workspace metadata in a file called org.eclipse.egit.ui.prefs.

Please note that this is NOT about viewing the history of commits in the past, and therefore to my knowledge not a duplicate question!


Solution

  • With the cursor in the "Commit message" box, press Ctrl+Space to show a list of previous commit messages. Select one and the "Commit message" box will be populated with that message.

    Screenshot showing old commit messages