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.
A pre-commit and pre-push hook pair, shared per-project via core.hooksPath, that blocks any git client from touching main.
A Claude Code hook that blocks git commit/push on main, while leaving my own terminal untouched.