Skip to content

chore: add git push protection hook#105

Open
dwmkerr wants to merge 5 commits intomainfrom
chore/git-push-hook
Open

chore: add git push protection hook#105
dwmkerr wants to merge 5 commits intomainfrom
chore/git-push-hook

Conversation

@dwmkerr
Copy link
Contributor

@dwmkerr dwmkerr commented Jan 15, 2026

Summary

  • Adds Claude Code hook to block direct pushes to main/master branches
  • Forces use of PRs for all changes to protected branches

Ensures the hook only matches exact branch names (main/master)
and not branches containing those words.
- Remove unused .claude/hooks/protect-git-push.sh debug script
- Revert test changes in README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants