Git.Merge banner
salimomrani salimomrani

Git.Merge

Git community

Description

--- description: Merge the current branch's PR, switch to the default branch, and clean up all merged/gone local and remote branches. Use when you want to merge a PR and clean up branches. argument-hint: [pr-number] (optional — auto-detected from current branch if omitted) --- ## User Input ```text $ARGUMENTS ``` ## Task Merge the current branch's PR and clean up all stale branches. ### Step 1 — Detect context ```bash git rev-parse --abbrev-ref HEAD # current branch gh repo view --json d

Installation

Installs to ~/.claude/commands/salimomrani-forgekit-git.merge.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/salimomrani/forgekit/HEAD/.claude/commands/git.merge.md -o ~/.claude/commands/salimomrani-forgekit-git.merge.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository