Git commit message linter checks your commit messages for style. More information: https://jorisroovers.com/gitlint/.
gitlint
gitlint --commits single_refspec_argument
gitlint --extra-path path/to/directory
gitlint --target path/to/target_directory
gitlint --msg-filename path/to/filename
gitlint --staged