deadbranch
Share on:
Enter Your Mastodon Instance
Copy the link below to share to Mastodon
https://terminaltrove.com/deadbranch/
Clean up stale git branches safely.
Script Preview
Review this script before executing in your terminal.

deadbranch is a git branch cleanup tool for finding and removing stale branches without deleting useful work.
It finds old branches, deletes merged ones by default, protects main branch names, also skips WIP and draft patterns, saves backup SHAs, and works with local or remote branches.
Other features include dry runs, branch statistics, backup restore, shell completions, and an interactive TUI interface with searching, visual selection, sorting, and a fun particle dissolving animation when a branch is deleted.
This tool makes sense for developers maintaining repos when old branches pile up after fixes, experiments, and reviews in the terminal. It is also an ideal tool even if sometimes you want to delete a branch in style.

