Git Clients

deadbranch – keep Git repositories tidy

deadbranch is a command-line utility that helps keep Git repositories tidy by identifying stale branches and cleaning them up with a safety-first workflow.

It can scan local and remote branches, show details such as age, merge status, last commit date, and author, and then remove branches after confirmation.

This is free and open source software.

Key Features

  • Provides commands to list stale branches, clean branches, show branch statistics, and manage configuration.
  • Uses safe defaults by deleting only merged branches unless the user explicitly enables forced removal of unmerged branches.
  • Includes an interactive full-screen TUI with Vim-style navigation, fuzzy search, visual range selection, and sortable branch views.
  • Supports dry-run previews and creates backup files containing deleted branch SHAs for restoration.
  • Lets users configure default age thresholds, protected branches, exclude patterns, and the default branch used for merge detection.
  • Works with both local and remote branches and can generate shell completions for Bash, Zsh, and Fish.

Website: github.com/armgabrielyan/deadbranch
Support:
Developer: Armen Gabrielyan
License: MIT License

deadbranch in action
Click animation for full size

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
difftasticStructural diff tool that compares files based on their syntax
git-filter-repoQuickly rewrite git repository history
onefetchDisplays information about a local Git repository
git-statsLocal git statistics including GitHub-like contributions calendars
diff-so-fancyAttractive diffs with diff-highlight and more
BFG Repo-CleanerClean unwanted data from Git repository history
git-deltaViewer for git and diff output
gitlogueCinematic Git commit replay tool
git-quick-statsAccess various statistics in a git repository
git-whoCommand-line Git analysis tool
git-standupRecall what you did on the last working day
git-of-theseusAnalyze how a Git repo grows over time
git-sizerCompute various size metrics for a git repository
diffnavGit diff pager based on delta but with a file tree, à la GitHub
critiqueTerminal UI for reviewing git diffs
git-big-pictureVisualization tool for Git repositories
herculesGain advanced insights from Git repository history
keifuTUI that visualizes Git commit graphs
git-fameGit repository collaborators sorted by contributions
needleHighlights GitHub PRs
mergirafGit merge driver
git-historyAnalyze Git history using SQLite
ecTerminal Git mergetool
diffrWord-by-word diff highlighting utility
git-scopeFast TUI dashboard to view the git status of all your repositories
mamediffManages unstaged and staged Git diffs
deadbranchKeep Git repositories tidy
GitTopLightweight desktop client for GitHub notifications
git-heatmapGenerates a customizable heatmap

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted