10 · Version Control
Git Hook
Script that runs on git events
A script git runs before or after actions like commit or push—format code, block secrets, or reject broken tests. Distinct from agent product “hooks.”
Concrete example
A pre-push hook can refuse to push if unit tests fail.
Why it matters
Local automation that guards the repo before CI ever sees a commit.