pre-commit init-templatedir
Install hook script in a directory intended for use with `git config init.templateDir`
Options
Name | Description |
---|---|
-h, --help | Show help message and exit |
--color <color> | Whether to use color in output. Defaults to `auto` |
--config, -c <CONFIG> | Path to alternate config file |
-t, --hook-type <HOOK_TYPE> | Type of hook to install |
--no-allow-missing-config | Assume cloned repos should have a `pre-commit` config |