PRE-COMMIT-INSTALL(1)

πŸ“¦ version 4.7.0, in epel 10, fedora 43, fedora 44

πŸ’… 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 to auto, 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:

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