Concept

pre-commit

Local check before an ordinary commit; nonzero exit rejects it.

Formal Syntax & Structure

git syntaxgit
pre-commit
Git Reference