← Browse
block-forbidden-git-add
widnyana ★ 7
A PreToolUse hook that blocks Claude from running git commands that stage protected paths, whole-tree adds, or rewrite history. It silently allows all other git and non-git commands, reading configuration from optional per-project JSON files or defaults.
Install
> /plugin marketplace add widnyana/eyay-toolkits/tree/HEAD/plugins/block-forbidden-git-add
> /plugin install block-forbidden-git-add
Source: https://github.com/widnyana/eyay-toolkits/tree/HEAD/plugins/block-forbidden-git-add
What it's made of
1 hook
- Commands
- 0
- Agents
- 0
- Skills
- 0
- MCP servers
- 0
- Hooks
- 1 · PreToolUse
What it needs & plugs into
- API keys
- none
- Paid services
- none detected
- External tools
bash- 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 (widnyana).