re-enable warning for empty commits

jaron barends June 22, 2017

By default, when you try do a commit with an empty commit message, you get popup to warn you. This popup has a checkbox "don't warn me again"

For a specific use case I needed to do a lot of commits where adding a commit message was unnecessary, so I checked the checkbox - expecting I could re-enable the warning in the settings later. However, I can't find this option anywhere.

How can I re-enable the warning for empty commits?

2 answers

0 votes
Jason Kania March 9, 2022

Is there any ability to ability add this warning in version 3.4.7 of SourceTree? It seems that the configuration option mentioned above is no longer present.

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2017

Hi Jaron! The way to re-enable that pop up depends on whic OS are you using:

- In Windows, edit the %localappdata%/Atlassian/SourceTree.exe_url_{hash}/{version}/user.config and change

<setting name="SuppressWarningOnEmptyCommit" serializeAs="String">

    <value>True</value>

</setting>

to

<setting name="SuppressWarningOnEmptyCommit" serializeAs="String">

    <value>False</value>

</setting>

- In Mac, type the following in your terminal

defaults write com.TorusKnot.SourceTreeNotMAS suppressWarnOnEmptyCommit NO

and press 'Enter'.

Cheers :)

Ana

jaron barends June 22, 2017

Yay, it worked! Thanks Ana.

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 23, 2017

Glad to hear that, Jaron. Have a good day!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events