• v1.0.0 f9c930d059

    Reproog released this 2026-12-01 09:59:39 +00:00 | 3 commits to master since this release

    cleanupGoneBranches v1.0.0

    First public release of cleanupGoneBranches – a small command-line utility that finds and deletes local Git branches whose remote counterparts have already been deleted ("gone" branches).

    Instead of manually inspecting git branch -vv and deleting stale branches one by one, just run the tool and pick what to delete.

    What's included

    • 🔄 Runs git fetch --prune automatically before scanning
    • 🔍 Detects all local branches marked [origin/xyz: gone]
    • 📝 Interactive selection with support for:
      • Single branches: 1
      • Lists: 1,4,7
      • Ranges: 2-5
      • Mixed: 1,3-6
      • Everything: all
    • ✅ Confirmation prompt before anything is deleted
    • 🛡️ The currently checked-out branch is never deleted
    • 💪 --force uses git branch -D for unmerged branches (default: safe git branch -d)
    • 👀 --show lists gone branches without deleting anything
    • 📖 --info prints the equivalent manual Git commands

    Options

    Option Description
    --show Show gone branches only (don't delete anything)
    --all Pre-select all gone branches (still asks for confirmation)
    --force Use git branch -D instead of git branch -d
    --info Show equivalent manual Git commands
    -h, --help Show help

    Downloads

    Pick the binary for your platform from the assets below:

    File Platform
    cleanupGoneBranches-windows_amd64.exe Windows 10/11 (64-bit)
    cleanupGoneBranches-linux_amd64 Linux (64-bit)
    cleanupGoneBranches-linux_arm64 Linux (ARM64, e.g. Raspberry Pi)
    cleanupGoneBranches-darwin_amd64 macOS (Intel)
    cleanupGoneBranches-darwin_arm64 macOS (Apple Silicon)

    Requirements: Git must be installed and available in your PATH, and you must run the tool inside a Git repository. No other runtime dependencies – it's a statically linked Go binary.

    Quick start

    # See what would be deleted (safe, read-only)
    cleanupGoneBranches --show
    
    # Interactive cleanup
    cleanupGoneBranches
    
    # Delete all gone branches (with confirmation)
    cleanupGoneBranches --all --force
    
    # Building from source
    # Prefer to compile it yourself?
    go install git.allesda.app/Reproog/cleanupGoneBranches@latest
    
    Downloads