
git-safety
Branch-aware git guardrails plus destructive gh CLI protection: denies pushes to main/master, protected-branch deletion, direct commit/merge/rebase/reset/push on a protected branch, and gh pr merge/close, issue close, release and repo delete.
- GitHub stars
- 581
Install
/plugin install git-safety@claude-code-hooksRun it inside Claude Code after adding the marketplace with /plugin marketplace add karanb192/claude-code-hooks.
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
Details
- Marketplace
- karanb192/claude-code-hooks
- Source
- plugins/git-safety
- Category
- Safety
More from karanb192/claude-code-hooks
All 22- guard-pack
- instructions-audit
- nerf-receipts
- notify-permission
- pr-provenance-stamp
- protect-secrets
- protect-tests
- session-logger
- standup-autopilot
- subagent-spawn-cap
- auto-stage
- block-dangerous-commands
- bounty-board
- cache-tax
- case-insensitive-guard
- config-guard
- config-watch
- context-hogs
- dead-end-registry
- dead-rules-audit
- format-code