A CLI tool to safely identify and delete stale git branches with interactive TUI, backups, and protected branch defaults.
deadbranch is a command-line utility that helps developers clean up old, unused git branches from their repositories. It identifies stale branches (older than a configurable number of days, default 30) and safely deletes them, prioritizing data protection through features like merged-only deletion by default, protection of important branches, and automatic backup creation.
Software developers and engineering teams working with Git repositories who need to maintain branch hygiene and reduce clutter from stale feature or bugfix branches.
Developers choose deadbranch for its safety-first design, which prevents accidental data loss, combined with powerful features like an interactive terminal UI (TUI) with Vim navigation and fuzzy search, detailed branch statistics, and a robust backup system for easy restoration.
Clean up stale git branches safely.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Defaults to deleting only merged branches and protects key branches like main and develop, with confirmation prompts and automatic backups, minimizing data loss risks.
Offers a full-screen terminal interface with Vim-style navigation, fuzzy search, and visual selection, making branch management efficient for keyboard-centric users.
Automatically saves deleted branch SHAs in backup files and provides dedicated restore commands, ensuring easy recovery from accidental deletions.
Provides a health overview with age distribution and safe-to-delete counts, helping developers assess repository cleanliness at a glance.
Lacks direct integration with GitHub or GitLab for pull request detection, a feature noted in the roadmap but not yet implemented, limiting automation in team workflows.
Configuring shell completions requires manual steps like editing .zshrc or .bash_profile, which can be cumbersome for users unfamiliar with shell configuration.
Being exclusively command-line based, it may not appeal to developers who prefer graphical interfaces for visual branch management and exploration.