Saphan StudioDocs
Reference/Commands

saphan hook

Installs Git hooks that Saphan Studio needs in a repository.

Installs Git hooks that Saphan Studio needs in a repository.

saphan hook install

Installs a pre-commit hook in a repository that refuses any commit staging a file covered by a root-level ignore rule starting with _ (Saphan Studio's underscore-prefixed coordination files), so they cannot be force-added. The hook goes into the repository's configured core.hooksPath (which must be absolute) or its shared hooks directory, so it covers the main checkout and every worktree; an existing pre-commit hook that is not this one is left in place and the install refuses. The hook calls this saphan binary by its absolute path, so re-run the install if the binary moves.

saphan hook install
flagtypedefaultwhat it does
--repostringAbsolute path of the repository to protect; required.

Global options apply to every command — see Every command.

On this page