Stopping Claude Code From Committing to Main

A Claude Code hook that blocks git commit/push on main, while leaving my own terminal untouched.

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