Scroll to navigation

GITLINT,(1) User Commands GITLINT,(1)


gitlint, - Git commit message linter




Git lint tool, checks your git commit messages for styling issues


Path of the target git repository. [default: current working directory]
Config file location [default: .gitlint]
Config flags in format <rule>.<option>=<value> (e.g.: -c T1.line-length=80). Flag can be used multiple times to set multiple config values.
The range of commits to lint. [default: HEAD]
Path to a directory or python module with extra user-defined rules
Ignore rules (comma-separated by id or name).
Contrib rules to enable (comma-separated by id or name).
Path to a file containing a commit-msg.
Ignore any stdin data. Useful for running in CI server.
Read staged commit meta-info from the local repository.
Verbosity, more v's for more verbose output (e.g.: -v, -vv, -vvv). [default: -vvv]
Silent mode (no output). Takes precedence over -v, -vv, -vvv.
Enable debugging output.
Show the version and exit.
Show this message and exit.


Generates a sample gitlint config file.
Install gitlint as a git commit-msg hook.
Lints a git repository [default command]
Runs the gitlint commit-msg hook.
Uninstall gitlint commit-msg hook.
When no COMMAND is specified, gitlint defaults to 'gitlint lint'.


The full documentation for gitlint, is maintained as a Texinfo manual. If the info and gitlint, programs are properly installed at your site, the command

info gitlint,

should give you access to the complete manual.

January 2021 gitlint, version 0.15.0