Plugin Claude Code
Prevent 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). Individual subcommands can be opted out via PROTECTMAINBRANCHALLOWEDSUBCOMMANDS, or the hook can b.