Skip to Main content

tuyen git check-commit-message

Validate the commit message format against configured patterns (for commit-msg hook)

Usage

tuyen git check-commit-message [OPTIONS] --commit-message-file <COMMIT_MESSAGE_FILE>

Options

-m, --commit-message-pattern <COMMIT_MESSAGE_PATTERN>

Regex patterns the commit message must match (repeatable)

-f, --commit-message-file <COMMIT_MESSAGE_FILE>

Path to the file containing the commit message (e.g. .git/COMMIT_EDITMSG)

-h, --help

Print help.