Git Branch Cleanup
Optimizes your repository by safely identifying and removing merged or stale Git branches with interactive confirmation.
Git Branch Cleanup is a specialized utility designed to maintain a tidy development environment by purging unnecessary local and remote branches. It intelligently categorizes branches into merged, stale, and protected groups, ensuring that critical branches like main, master, and develop are never touched. By utilizing Git's native safety checks and requiring explicit user confirmation before any deletion, this skill provides a secure way to prune repository clutter without the risk of losing unmerged work.
Key Features
01Supports optional glob pattern matching to filter specific branch types
02Uses safe-delete flags (-d) to prevent accidental loss of unmerged code
0352 GitHub stars
04Built-in protection for core branches like main, master, and develop
05Intelligently identifies merged and stale branches for safe removal
06Interactive confirmation workflow with multi-select capabilities
Use Cases
01Pruning abandoned feature branches that no longer have active development
02Tidying up a local repository after completing a sprint or project phase
03Synchronizing local branch state with remote after a repository overhaul