-
Release v1.0.0 Stable
released this
2026-12-01 09:59:39 +00:00 | 3 commits to master since this releasecleanupGoneBranches 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 -vvand deleting stale branches one by one, just run the tool and pick what to delete.What's included
- 🔄 Runs
git fetch --pruneautomatically 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
- Single branches:
- ✅ Confirmation prompt before anything is deleted
- 🛡️ The currently checked-out branch is never deleted
- 💪
--forceusesgit branch -Dfor unmerged branches (default: safegit branch -d) - 👀
--showlists gone branches without deleting anything - 📖
--infoprints the equivalent manual Git commands
Options
Option Description --showShow gone branches only (don't delete anything) --allPre-select all gone branches (still asks for confirmation) --forceUse git branch -Dinstead ofgit branch -d--infoShow equivalent manual Git commands -h,--helpShow help Downloads
Pick the binary for your platform from the assets below:
File Platform cleanupGoneBranches-windows_amd64.exeWindows 10/11 (64-bit) cleanupGoneBranches-linux_amd64Linux (64-bit) cleanupGoneBranches-linux_arm64Linux (ARM64, e.g. Raspberry Pi) cleanupGoneBranches-darwin_amd64macOS (Intel) cleanupGoneBranches-darwin_arm64macOS (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@latestDownloads
- 🔄 Runs