delete-merged-branches

Community

Clean up merged Git branches.

Authorotomatty
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the safe deletion of Git branches that have already been merged into a specified base branch, both locally and on the remote repository, helping to keep your repository tidy and organized.

Core Features & Use Cases

  • Safe Deletion: Identifies branches merged via ancestry or by matching GitHub's headRefOid for squash/rebase merges.
  • Remote & Local Cleanup: Removes branches from both your local machine and the remote (e.g., origin).
  • Closed PR Branch Pruning: Also targets remote branches of closed (unmerged) Pull Requests for cleanup.
  • Use Case: After merging a feature branch into develop, use this Skill to automatically remove the now-redundant feature branch from your local and remote repositories.

Quick Start

Run the delete-merged-branches script with 'develop' as the base branch to clean up merged branches.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: delete-merged-branches
Download link: https://github.com/otomatty/zedi/archive/main.zip#delete-merged-branches

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.