PRE-COMMIT-INSTALL(1)
π PRE-COMMIT-INSTALL β the install era begins
okay so bestie, welcome to pre-commit-install (manual section 1, User Commands, in case you were wondering) β the little command that β¨*installs the pre-commit script*β¨. That's the whole NAME situation. Short. Sweet. Iconic.
πΈ SYNOPSIS πΈ
pre-commit install [-h] [--color {auto,always,never}] [-c CONFIG] [-f]
[--install-hooks]
[-t {commit-msg,post-checkout,post-commit,post-merge,post-rewrite,pre-commit,pre-merge-commit,pre-push,pre-rebase,prepare-commit-msg}]
[--allow-missing-config]
literally just run it and the hooks get set up, no cap π«Ά
π OPTIONS π
β OPTIONAL ARGUMENTS
-h,--helpβ shows you a help message and dips out. that's it, that's the whole job π--color {auto,always,never}β whether to use color in the output. defaults toauto, so she'll figure out the vibe herself.-c,--config CONFIGβ path to an alternate config file. like, if your config is living somewhere else. main character config energy.-f,--overwriteβ overwrite existing hooks / remove migration mode. she's not asking permission, she's just doing it π--install-hooksβ whether to install hook environments for all environments in the config file. go big or go home, fr fr.-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}β (the original page lists this one with no description attached, so we're respecting her mystery era π¦)--allow-missing-configβ whether to allow a missing pre-commit configuration file, or exit with a failure code. pick your fighter π
π SEE ALSO π
besties in the same friend group, go say hi:
pre-commit-autoupdate(1)pre-commit-clean(1)pre-commit-gc(1)pre-commit-init-templatedir(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)
and of course the mothership herself: pre-commit(1) π
this page came out in February 2025, and it's part of the pre-commit situation. go install your hooks, bestie, you got this πβ¨π
π¦ where this page comes from
- epel 10: pre-commit 4.7.0-1.el10_3 Β· MIT
- fedora 43: pre-commit 4.3.0-3.fc43 Β· MIT
- fedora 43: pre-commit 4.6.2-1.fc43
- fedora 43: pre-commit 4.7.0-1.fc43 Β· MIT
- fedora 44: pre-commit 4.5.1-2.fc44 Β· MIT
- fedora 44: pre-commit 4.6.2-1.fc44
- fedora 44: pre-commit 4.7.0-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms