universelab SCI · CLI · BIO

Hooks

Built-in hooks

Built-ins are embedded in the binary — no network required.

NameHookDescription
conventional-commitscommit-msgValidates Conventional Commits format
no-secretspre-commitDetects common secret patterns in staged changes
branch-namingpre-commitValidates branch name matches convention
gitkit hooks list --available   # see all built-ins with descriptions
gitkit hooks add no-secrets     # install one (hook type inferred)

Custom hooks

Wire any shell command into a git hook:

gitkit hooks add pre-push "cargo test"

Managing hooks

gitkit hooks list            # list installed hooks
gitkit hooks show <hook>     # print hook content
gitkit hooks remove <hook>   # remove an installed hook

The gitkit wizard also shows installed hooks, pre-selects them and allows removal interactively.