The auto generated git commit merge message used to be prompted to me automatically in the IntelliJ commit message dialog, and it suddenly stopped. If I use commit in the command line, I can see that git creates the correct merge commit message (with the branch names & conflict files), but IntelliJ doesn't suggest this message to me if I commit from IntelliJ.
What can I do to bring the auto generated git merge commit message automatically to the dialog box when I commit in IntelliJ?
Solved! The problem was the the changelist in IntelliJ had a comment associated to it (value can be edited using the 'Edit Changelist' option). Once I cleared this value, the git merge commit message was properly suggested to me in the commit dialog.
To clarify:
If the solution mentioned by Opher to clear the change-list comment field. not working, try this:
go to Intellij settings
navigate to: Version Controll, Commit Dialog
uncheck this option: Clear initial commit message
In fact, Merge commit should appear. The thing is that if there are other commit message providers (e.g. some task server, or a message saved to the description of changelist, etc), they can overwrite the merge commit message.
So make sure the commit message is not coming from somewhere else. If it is some older commit message, but always the same, check Edit the Default changelist and check if there is something in the Description.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With