10 · Version Control
Pre-commit Hook
Checks before a commit is saved
A git hook that runs as you commit—lint, format, or secret scan—so bad snapshots never enter history. Can be bypassed with care; CI should still verify.
Concrete example
A pre-commit hook runs the formatter so style nits never hit the PR.
Why it matters
The first automatic critic of agent-generated diffs.