Clean Branches

清理本地和远程已合并的 Git 分支。扫描所有本地分支和远程 tracking branches,标记已合并入当前分支的分支,一次性列表让用户勾选确认后删除并验证结果。使用场景包括:分支太多要清理、合并后残留、worktree 未清理、远程 stale branches。当用户提到 清理分支/删分支/整理分支/clean branches/branch cleanup/prune branches/git clean 时务必使用。对于合并后残留的发布分支、废弃的功能分支、已修复的 bugfix 分支尤其适用。

toRolex d811b9b 5.3 KB Updated

File contents

toRolex/rolex-skills/tree/main/skills/personal/clean-branches commit d811b9b741

Frequently asked questions

npx skillmds@latest add torolex/clean-branches