Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: Change standard commit message

I am not sure if I did something stupid that my IntelliJ does this, but when I commit changes in SVN I always have the same predefined commit message in the text area ("changed imageservlet"), which is kinda annoying. (in a VERY light grey)

Does anyone know how I can get rid of that or why this occured?

Screenshot of commit message

like image 620
luuksen Avatar asked Jan 29 '15 15:01

luuksen


People also ask

How do I change the commit message in IntelliJ?

Edit a commit messageRight-click the commit whose message you want to edit in the Log tab of the Git tool window Alt+9 and select Edit Commit Message from the context menu, or press F2 . In the dialog that opens, enter a new commit message and click OK.

Can I change the message of a commit?

You can change the most recent commit message using the git commit --amend command. In Git, the text of the commit message is part of the commit. Changing the commit message will change the commit ID--i.e., the SHA1 checksum that names the commit. Effectively, you are creating a new commit that replaces the old one.

How do I show commit dialog in IntelliJ?

note. Starting from IntelliJ IDEA version 2020.1, you can switch to a non-modal commit interface: select the Use non-modal commit interface option (enabled by default for new installations) on the Version Control | Commit page of the IDE settings Ctrl+Alt+S .

How revert local commit in IntelliJ?

Locate the commit you want to revert in the Log tab of the Git tool window Alt+9 , right-click it and select Revert Commit from the context menu. This option is also available from the context menu of a commit in the file History view.


2 Answers

Under "Version Control" and "Confirmation", you have a check button : "Clear initial commit message".

That might be a better solution in case you want to always have an empty text-field to input your commit message. Otherwise you can modify that file.

UPDATE IntelliJ Version:

IntelliJ IDEA 2018.3.5 (Ultimate Edition)
Build #IU-183.5912.21, built on February 26, 2019
macOS 10.14.3

Option Clear initial commit message is now under Version Control > Commit Dialog

enter image description here

like image 143
OddBeck Avatar answered Sep 21 '22 19:09

OddBeck


I fixed this by editing the .idea/workspace.xml in the following row:

<list default="true" readonly="true" id="..." name="Default" comment="CHANGE DEFAULT MESSAGE HERE">

Thanks to Bohuslav Burghardt for pointing out the correct file to edit.

like image 26
luuksen Avatar answered Sep 19 '22 19:09

luuksen