跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Ce 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.

目的

To streamline Git workflows by automatically removing obsolete local branches and their worktrees, preventing clutter and potential confusion.

功能

  • Identify local branches with deleted remote tracking branches
  • Remove associated Git worktrees
  • Prompt user for confirmation before deletion
  • Report on cleaned branches and overall status

使用场景

  • When the user wants to clean up their local Git repository.
  • To remove stale branches that no longer exist on the remote.
  • When local branches have associated worktrees that also need removal.

非目标

  • Deleting branches that still have remote tracking branches.
  • Performing multi-selection or per-branch deletion choices.
  • Handling complex Git merge conflicts or advanced branch management scenarios.

安装

请先添加 Marketplace

/plugin marketplace add EveryInc/compound-engineering-plugin
/plugin install compound-engineering@compound-engineering-plugin

质量评分

已验证
97 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标16.7k
许可证MIT
状态
查看源代码