Blocking Commits and Pushes to Main With Native Git Hooks

A pre-commit and pre-push hook pair, shared per-project via core.hooksPath, that blocks any git client from touching main.

September 16, 2026 · 5 min · Tim St. Hilaire