Stats
Links
Categories
Claude Code plugins by lacolaco
npx claudepluginhub lacolaco/claude-pluginsPrevent git operations that would modify the main branch (or configured branches) in Claude Code. Blocks `git commit`, `push`, `merge`, `rebase`, `reset`, `cherry-pick`, `revert`, and `am` on the protected branch(es).
Claude Code plugins by lacolaco.
| Plugin | Description |
|---|---|
| protect-main-branch | Prevent direct edits and pushes to the main branch |
Blocks Write, Edit, and git push operations when on the main branch in Claude Code.
main: no-op (all operations allowed)main branch:
git push commandsWhen blocked, the hook returns:
Cannot edit/push on main branch. Create a feature branch first.
/plugin marketplace add lacolaco/claude-plugins
/plugin install protect-main-branch@lacolaco-plugins
jq must be installedMIT