core.hooksPath

The setting that tells Git to look for hooks in a folder you choose instead of .git/hooks.

In more detail

Pointing it at a folder inside the repository, such as .githooks, lets the team commit and share hooks. Each person still has to set it once in their clone, because config is not committed either.

Example

git config core.hooksPath .githooks

Related terms

Taught in

References