Interview Prep/Git & GitHub/Hooks, submodules, LFS and signing

How do you share hooks with a team, given `.git/hooks` is not committed?

IntermediateConceptHooks, submodules, LFS and signing
Answer

Commit them in a directory and point Git at it with core.hooksPath, or use a framework such as pre-commit, Husky or lefthook that installs them on setup. Hooks are bypassable with --no-verify, so always enforce the same checks in CI.

git config core.hooksPath .githooks
All Git & GitHub questions Roadmap: Git & GitHub

More on Hooks, submodules, LFS and signing