Branch Cleanup banner
kumaran-is kumaran-is

Branch Cleanup

Git community

Description

--- description: Clean up merged, stale, and orphaned git branches. Protects main/develop/release/* automatically. Supports --dry-run (preview only), --force (no confirmation), --remote-only, --local-only. Run after a sprint ends or before a release. allowed-tools: Bash, Read, Grep --- # Branch Cleanup Audit and clean up local and remote branches safely. Always categorises before deleting. ## Step 1 — Gather Repository State ```bash echo "=== Current branch ===" git branch --show-current ec

Installation

Installs to ~/.claude/commands/kumaran-is-claude-code-onboarding-branch-cleanup.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/kumaran-is/claude-code-onboarding/HEAD/.claude/commands/branch-cleanup.md -o ~/.claude/commands/kumaran-is-claude-code-onboarding-branch-cleanup.md

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

Full documentation available on GitHub

View Source Repository