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

Git Cleanup

技能 已验证 活跃

Safely analyzes and cleans up local git branches and worktrees by categorizing them as merged, squash-merged, superseded, or active work.

目的

To help users safely clean up accumulated local git branches and worktrees, preventing accidental data loss and managing repository clutter.

功能

  • Categorizes branches as merged, squash-merged, superseded, or active
  • Groups related branches for collective analysis
  • Requires explicit user confirmation before deletion
  • Handles dirty worktree detection and warnings
  • Supports safe deletion of local branches and worktrees

使用场景

  • When you have accumulated many local git branches and worktrees.
  • After branches have been merged into the default branch but not cleaned up locally.
  • When remote tracking branches have been deleted, but local ones remain.
  • To systematically review and clean up old or superseded feature branches.

非目标

  • Managing remote git branches or repositories.
  • Performing general repository maintenance like `git gc` or `git prune`.
  • Headless or non-interactive automation due to required user confirmations.
  • Modifying commit history beyond what's necessary for cleanup.

安装

请先添加 Marketplace

/plugin marketplace add trailofbits/skills
/plugin install git-cleanup@trailofbits

质量评分

已验证
99 /100
1 day ago 分析

信任信号

最近提交3 days ago
星标5.2k
许可证CC-BY-SA-4.0
状态
查看源代码