Set custom directory for git hooks

git config core.hooksPath .githooks

Where .githooks is path to directory with our hooks.

Article