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 used by the pre-push hook.
-m, --commit-message-pattern <COMMIT_MESSAGE_PATTERN>
- Regex patterns the commit message must match, used by the 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 to allow.
- Alias:
type.
-p, --branch-prefix <BRANCH_PREFIX>
- Comma-separated list of allowed branch name prefixes.
- Alias:
branch_prefixes.
-s, --scope-pattern <SCOPE_PATTERN>
- Regex pattern for allowed commit scopes.
-h, --help
- Print help.