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?
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.
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.
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 .
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.
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
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.
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