alirezarezvani

Clean Gone — Git skill for Claude Code

Git community

Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.

How to install Clean Gone

Installs to ~/.claude/commands/alirezarezvani-aeo-box-clean_gone.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/alirezarezvani/aeo-box/HEAD/.claude/commands/clean_gone.md -o ~/.claude/commands/alirezarezvani-aeo-box-clean_gone.md

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

What Clean Gone does


description: Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.

Your Task

You need to execute the following bash commands to clean up stale local branches that have been deleted from the remote repository.

Commands to Execute

  1. **First, list branches to identify any with [gone] status** Execute this command:

    git branch -v

    Note: Branches with

Alternatives in Git

  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • Bulletproof Quick Start Guide — Target Audience: Complete beginners Never used Python/git before 11.1k ★
  • Git MCP — GitHub Repo stars Free open-source remote MCP server for any GitHub project Git integration MCP 7.8k ★

Full documentation available on GitHub

View Source Repository