git-clean-gone
Clean up local branches with deleted remote tracking and their worktrees. Use after merging PRs to remove stale branches, detect squash-merged and rebased branches, and clean up associated worktrees.
- License
- MIT
- Compatibility
- Works in Claude Code, Codex, opencode and Copilot CLI. Needs bash and git; the gh CLI is optional (squash-merge detection). Fetches from all remotes.
Pinned to revision 8eba15d97d06, so it is the text this page describes rather than whatever the author pushed since.
Pre-approved tools experimental
Experimental field. Support varies between clients, so this list is what the author declared, not what your client will enforce.
- Bash
Files
- skills/git-clean-gone/SKILL.md
- skills/git-clean-gone/agents/openai.yaml
- skills/git-clean-gone/scripts/clean-gone.sh
Every link opens the file at its source, pinned to the revision this page describes.