Documentation
¶
Overview ¶
The git-hook command is Tailscale's git hook binary, built and installed under .git/hooks/ts-git-hook-bin by the launcher at .git/hooks/ts-git-hook. misc/install-git-hooks.go writes the initial launcher; subsequent HOOK_VERSION bumps trigger self-rebuilds.
Adding your own hooks ¶
To add your own hook alongside one we already hook, create an executable file .git/hooks/<hook-name>.local (e.g. pre-commit.local). It runs after the built-in hook succeeds.
Click to show internal directories.
Click to hide internal directories.