Require non-empty commit messages for git

Wilhelm Medetz April 12, 2016

Currently SourceTree allows empty commit messages for git.

Is there any way to force Sourcetree to require non-empty commit messages (as git usually does)?

1 answer

0 votes
Midori
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 12, 2016

You can do this with the Commit Policy Plugin using the the commit message must match a regular expression condition.

This can verify the commit both locally and on the server for ultimate security.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events