← Browse
git-protection
yurukusa ★ 7
This Claude Code plugin implements git safety hooks that intercept and block dangerous git operations like force-push, hard-reset, forced branch deletion, and git clean before they execute. It protects the main/master branch by preventing these destructive actions through PreToolUse event hooks.
Install
> /plugin marketplace add yurukusa/cc-safe-setup/tree/HEAD/plugins/git-protection
> /plugin install git-protection
Source: https://github.com/yurukusa/cc-safe-setup/tree/HEAD/plugins/git-protection
What it's made of
5 hooks
- Commands
- 0
- Agents
- 0
- Skills
- 0
- MCP servers
- 0
- Hooks
- 5 · PreToolUse
What it needs & plugs into
- API keys
- none
- Paid services
- none detected
- External tools
!""))}catch(e){}})'%s&\s--dry-run)'\s--force)']*(-D]*(s-[a-zA-Z]*[fd]]*(s-[a-zA-Z]*n[a-zA-Z]*]*--delete)']*--force]*--hard'git\s+push.*-f\b'grepmaster)\b'print((d.get("tool_input")process.stdin.on(data,d=>s+=d).on(end,()=>{try{process.stdout.write(String((JSON.parse(s).tool_inputsed{{}).command}})- Talks to
- nothing external detected
Analyzed . Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.
Is this your plugin?
Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (yurukusa).