git-branch-clean

Installation
SKILL.md

Git Branch Clean

Sync remote state, then find and delete local branches whose remote is gone. Always confirm with user before any deletion.

Step-by-Step Process

Step 1: Fetch and prune remote refs

git fetch --prune

This removes remote-tracking refs that no longer exist on remote.

Step 2: Pull alive tracking branches

Get list of alive tracking branches (not gone, not current):

Related skills
Installs
3
First Seen
Apr 24, 2026