Clean Gone banner
alirezarezvani alirezarezvani

Clean Gone

Git community

Description

--- 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: ```bash git branch -v ``` Note: Branches with

Installation

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.

Full documentation available on GitHub

View Source Repository