pre-commit-init-templatedir - Man Page

pre-commit-init-templatedir – Install hook script in a directory intended for use with

Synopsis

pre-commit init-templatedir git config init.templateDir [-h] [--color {auto,always,never}] [-c CONFIG] [--no-allow-missing-config] [-t {commit-msg,post-checkout,post-commit,post-merge,post-rewrite,pre-commit,pre-merge-commit,pre-push,pre-rebase,prepare-commit-msg}] directory

Options

Positional Arguments

directory

The directory in which to write the hook script.

Optional Arguments

-h--help

Show a help message and exit.

--color {auto,always,never}

Whether to use color in output. Defaults to auto.

-c,  --config CONFIG

Path to alternate config file.

--no-allow-missing-config

Assume cloned repos should have a pre-commit config.

-t--hook-type {commit-msg,post-checkout,post-commit,post-merge,post-rewrite,pre-commit,pre-merge-commit,pre-push,pre-rebase,prepare-commit-msg}

See Also

pre-commit-autoupdate(1), pre-commit-clean(1), pre-commit-gc(1), pre-commit-install(1), pre-commit-install-hooks(1), pre-commit-migrate-config(1), pre-commit-run(1), pre-commit-sample-config(1), pre-commit-try-repo(1), pre-commit-uninstall(1), pre-commit-validate-config(1), pre-commit-validate-manifest(1), pre-commit-help(1)

pre-commit(1)

Referenced By

pre-commit(1), pre-commit-autoupdate(1), pre-commit-clean(1), pre-commit-gc(1), pre-commit-help(1), pre-commit-install(1), pre-commit-install-hooks(1), pre-commit-migrate-config(1), pre-commit-run(1), pre-commit-sample-config(1), pre-commit-try-repo(1), pre-commit-uninstall(1), pre-commit-validate-config(1), pre-commit-validate-manifest(1).

February 2025