tuyen git set-hooks
Install git hooks (pre-push, pre-commit, commit-msg) in the repository
Usage
tuyen git set-hooks [OPTIONS]Options
-b, --remote-branch-pattern <REMOTE_BRANCH_PATTERN>
Regex patterns for allowed remote branch names (for pre-push hook)
-m, --commit-message-pattern <COMMIT_MESSAGE_PATTERN>
Regex patterns the commit message must match (for commit-msg hook)
-x, --excluded-file <EXCLUDED_FILE>
Glob patterns for files to exclude from the pre-commit check
-t, --types <TYPES>
Comma-separated list of conventional commit types (e.g. "feat,fix,chore")
Aliases:
type
-p, --branch-prefix <BRANCH_PREFIX>
Comma-separated list of allowed branch name prefixes (e.g. "feature/,bugfix/")
Aliases:
branch_prefixes
-s, --scope-pattern <SCOPE_PATTERN>
Regex pattern for allowed commit scopes (e.g. "(core|ui|api)")
-h, --help
Print help.