deadbranch helps maintainers identify Git branches that have stopped receiving commits and decide which can safely be deleted. Rather than relying only on branch names or age, it exposes information such as merge status and the time of the latest commit.
The cleanup workflow is conservative: branches can be inspected and previewed before deletion, with protection for selected branches and recovery information for deleted references. It can be used interactively or through command-line operations.
A branch with no recent commits is not automatically safe to delete. Some represent releases or long-lived support work. This makes the merge-state check, protection rules, confirmation step and recovery information important parts of the cleanup process rather than merely optional conveniences. Branch age and merge state can be examined together, helping avoid the mistake of treating every quiet branch as disposable.
This is free and open source software.
Key Features
- Lists stale local and remote branches with their latest commit dates and authors.
- Provides age thresholds for identifying candidates for cleanup.
- Distinguishes merged branches from unmerged branches and defaults to safer deletion behaviour.
- Includes a full-screen interface with searching, sorting and keyboard-driven selection.
- Supports dry-run inspection before removing any references.
- Writes backup information containing deleted branch identifiers for possible restoration.
- Allows protection rules and exclusion patterns for branches that must be retained.
- Offers configuration of merge-detection settings and default thresholds.
- Includes branch statistics and configuration-management commands.
Website: github.com/armgabrielyan/deadbranch
Support:
Developer: Armen Gabrielyan
License: MIT License

deadbranch is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Git Tools for Diff Review and Repository History | |
|---|---|
| difftastic | Structural diff tool that compares files based on their syntax |
| git-filter-repo | Quickly rewrite git repository history |
| onefetch | Displays information about a local Git repository |
| git-stats | Local git statistics including GitHub-like contributions calendars |
| diff-so-fancy | Attractive diffs with diff-highlight and more |
| BFG Repo-Cleaner | Clean unwanted data from Git repository history |
| git-delta | Viewer for git and diff output |
| gitlogue | Cinematic Git commit replay tool |
| git-quick-stats | Access various statistics in a git repository |
| git-who | Command-line Git analysis tool |
| git-standup | Recall what you did on the last working day |
| git-of-theseus | Analyze how a Git repo grows over time |
| git-sizer | Compute various size metrics for a git repository |
| diffnav | Git diff pager based on delta but with a file tree, à la GitHub |
| critique | Terminal UI for reviewing git diffs |
| git-big-picture | Visualization tool for Git repositories |
| hercules | Gain advanced insights from Git repository history |
| keifu | TUI that visualizes Git commit graphs |
| git-fame | Git repository collaborators sorted by contributions |
| needle | Highlights GitHub PRs |
| mergiraf | Git merge driver |
| git-history | Analyze Git history using SQLite |
| ec | Terminal Git mergetool |
| diffr | Word-by-word diff highlighting utility |
| git-scope | Fast TUI dashboard to view the git status of all your repositories |
| mamediff | Manages unstaged and staged Git diffs |
| deadbranch | Keep Git repositories tidy |
| GitTop | Lightweight desktop client for GitHub notifications |
| git-heatmap | Generates a customizable heatmap |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.