Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 575 Bytes

message-format.md

File metadata and controls

19 lines (13 loc) · 575 Bytes

message-format

By default this hook will insist that all commit messages include at least 4 words. You can turn this feature off using the following configuration,

git config hooks.message-format.disabled true

Alternatively, for more control of your commit messages you can specify a regular expression that must match all commit messages.

git config hooks.message-format.regex "$x"

Where $x is a Perl compatible regular expression. You can also customise the error message.

git config hooks.message-format.message "Your message here"