snippetbashTip
gitlint — Git commit message linter checks your commit messages for style. More information: <https://jorisroo
Viewed 0 times
gitlintcommandcommitclilinterchecksgitmessage
Problem
How to use the
gitlint command: Git commit message linter checks your commit messages for style. More information: <https://jorisroovers.com/gitlint/>.Solution
gitlint — Git commit message linter checks your commit messages for style. More information: <https://jorisroovers.com/gitlint/>.Check the last commit message:
gitlintThe range of commits to lint:
gitlint --commits {{single_refspec_argument}}Path to a directory or Python module with extra user-defined rules:
gitlint --extra-path {{path/to/directory}}Start a specific CI job:
gitlint --target {{path/to/target_directory}}Path to a file containing a commit-msg:
gitlint --msg-filename {{path/to/file}}Read staged commit meta-info from the local repository:
gitlint --stagedCode Snippets
Check the last commit message
gitlintThe range of commits to lint
gitlint --commits {{single_refspec_argument}}Path to a directory or Python module with extra user-defined rules
gitlint --extra-path {{path/to/directory}}Start a specific CI job
gitlint --target {{path/to/target_directory}}Path to a file containing a commit-msg
gitlint --msg-filename {{path/to/file}}Context
tldr-pages: common/gitlint
Revisions (0)
No revisions yet.