Skip to main content

Git Cleanup

Skill Verified Active
Part of:Git Cleanup

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

Purpose

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

Features

  • 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

Use Cases

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

Non-Goals

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

Installation

First, add the marketplace

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

Quality Score

Verified
99 /100
Analyzed about 14 hours ago

Trust Signals

Last commit3 days ago
Stars5.2k
LicenseCC-BY-SA-4.0
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.