Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By bendruckerMITIn 1 marketplace
Resolves git merge conflicts during rebase, merge or cherry-pick and carries the operation through to a push when asked. Hooks block direct commits to the default branch and suggest HTTPS retries when the SSH agent refuses to sign.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
merge-conflicts, rebase, cherry-pick, git-worktree, commit-signing
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
HTTPS fallback hostshttps_hosts
Comma-separated host=cli pairs. When SSH auth to a host fails, the hook suggests retrying over HTTPS through that CLI's auth git-credential helper.
stringdefault github.com=gh,gitlab.com=glab
Git workflow and branching best practices for Claude Code.
conflicts: Resolve git merge conflicts during rebase, merge, or cherry-pick. Drives the operation to completion and pushes when asked.git push -u tracking outside the sandbox, which denies the .git/config write a linked worktree's push makesEnterWorktree call the harness would rejectSecretive gates every SSH signature behind Touch ID, so an unattended git fetch, pull, or push gets agent refused operation and then Permission denied (publickey), exiting 128. Ordinary fetches and pulls fail the same way.
The PostToolUseFailure hook watches failing git commands for that signature. When the repository (or the command) names an SSH remote on a host whose CLI holds HTTPS credentials (the https_hosts option, default github.com=gh,gitlab.com=glab), it returns the same command rewritten to go over HTTPS:
git -c credential.helper= -c 'credential.helper=!gh auth git-credential' -c 'url.https://github.com/[email protected]:' -c 'url.https://github.com/.insteadOf=ssh://[email protected]/' fetch origin
The hook suggests, it does not retry. Rewriting the URL through insteadOf rather than substituting the remote with a bare URL keeps the remote name, its refspecs, and its remote-tracking ref updates identical to the SSH attempt. The provider CLI's auth git-credential helper supplies the token for the duration of that one command, so nothing is written to the repository's config and no credential is stored or echoed. The leading credential.helper= resets the helper list so a stale keychain entry cannot win.
A host outside https_hosts doesn't get a suggestion, since no known CLI could authenticate the retry. Add a self-hosted forge or enterprise domain as another host=cli pair whose CLI provides auth git-credential.
Commit and tag signing go through ssh-keygen -Y sign instead, and HTTPS cannot replace a signature. The fallback stays silent on them, and the signing refusal hook handles them.
With gpg.format=ssh, an SSH agent that is locked or wants approval for each signature refuses an unattended git commit, tag, or rebase, and ssh-keygen reports Couldn't sign message (signer): agent refused operation. The PostToolUseFailure hook recognizes that output and checks whether the repository requires signatures:
git config claude.requireSigning true in the repositoryrequired_signatures rule on the current branch, from GitHub's rules/branches APIWhen signing is required, the hook tells the model to stop and ask the user to unlock or approve the agent. Otherwise it tells the model to retry with -c commit.gpgsign=false. A lookup that can't reach GitHub counts as not required, and the push then reports the rejection.
The PreToolUse hook on EnterWorktree denies a path call the harness is certain to reject. Claude Code enters only a worktree of the session's own repository, refuses the current directory, and after the session's first switch it enters only paths under the main checkout's .claude/worktrees/. Worktrees made outside the harness, by git worktree add or a worktree manager, usually live elsewhere. A skill that enters one hits these rejections on every cross-repo or worktree-to-worktree switch before it falls back to cd. Repository identity comes from git rev-parse --git-common-dir. Whether the session has switched comes from the newest worktree-state record in the transcript, the harness's own record of it. A session that merely started in a linked worktree can still switch once, and the hook allows that. Anything it cannot resolve, including subagent calls, passes through to the harness.
A worktree-to-worktree deny tells the model to recover natively. ExitWorktree({action: "keep"}) leaves the current worktree on disk and ends the worktree session, after which EnterWorktree({path}) can enter any registered worktree of the repository.
Delete it once Claude Code's own is not under rejection names ExitWorktree, or if two weeks pass with no ExitWorktree call following a deny.
The hook self-times into ~/.claude/hook-metrics/ through scripts/hook-metrics.ts, a checked copy of user/scripts/hook-metrics.ts that scripts/copies.test.ts keeps identical.
bun test plugins/git
7-day copy clicks
npx claudepluginhub bendrucker/claude --plugin gitPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.