home/categories/system-admin/everyinc-compound-engineering-plugin-plugins-compound-engineering-skills-git-clean-gone-branches-skill-md
system-admintools

git-clean-gone-branches

Clean up local branches whose remote tracking branch is gone. Use when the user says "clean up branches", "delete gone branches", "prune local branches", "clean gone", or wants to remove stale local branches that no longer exist on the remote. Also handles removing associated worktrees for branches that have them.

EveryInc
maintainer
EveryInc
更新于 3/27/2026
星标
13965
分支
1044
quick start

Installation and usage

Clean up local branches whose remote tracking branch is gone. Use when the user says "clean up branches", "delete gone branches", "prune local branches", "clean gone", or wants to remove stale local branches that no longer exist on the remote. Also handles removing associated worktrees for branches that have them.

安装
$ install --globalskills.sh
使用

安装后,您可以通过在终端运行以下命令来使用此技能:

skills use git-clean-gone-branches