macOS
brew install git-delete-merged-brancheslocal Homebrew formula metadata
brew
Command-line tool to delete merged Git branches. Version 7.6.0 via Homebrew; verified 2026-06-18.
install
brew install git-delete-merged-brancheslocal Homebrew formula metadata
sudo apt install git-delete-merged-branchesDebian stable package indexes · git-delete-merged-branches · source: deb.debian.org
nix profile install nixpkgs#git-delete-merged-branchesnixpkgs package indexes · pkgs/by-name/gi/git-delete-merged-branches/package.nix · source: api.github.com
overview
Command-line tool to delete merged Git branches
history
git-delete-merged-branches is a Python command-line tool for cleaning up local and remote Git branches after their work has been merged. Its package installs the shorter `git-dmb` executable and documents safety-focused branch deletion.
The upstream Git history begins in July 2020 with code for version 1.0.0. The project advanced quickly through early releases and later settled into a maintained CLI with tests, pre-commit integration, and package-manager distribution.
The README frames the tool around safe cleanup rather than raw deletion. It detects multiple forms of de-facto merges, including rebase merges, squash merges with extra effort, and cherry-picks by leveraging `git cherry`; it also supports workflows with multiple release branches.
The official README lists install paths through pip and distribution packages including Arch AUR, Debian, Gentoo, Homebrew, MacPorts, NixOS, Ubuntu, and Void Linux. That makes the tool visible in the same package-manager space as Git workflow helpers rather than only as a Python package.
Its README also documents a command-name clash with git-extras, whose utility collection ships a simpler `git-delete-merged-branches` script. The standalone project responds by offering `python3 -m git_delete_merged_branches` and `git-dmb` invocation paths.
Practitioners run it inside a repository to update remotes, fast-forward tracked release branches, list local and remote branches that appear merged, and ask before deletion. A `--dry-run` mode lets users inspect actions first, and `--verbose` shows Git commands.
The tool is used when teams accumulate topic branches across local clones, forks, and remote hosts. It is provider-agnostic and documents use with GitHub, GitLab, Gitea, and other Git hosting because it works through Git commands rather than a hosting API.
The package is a good example of a small workflow CLI whose value lies in guardrails: branch deletion is risky, so the project packages conservative prompts, dry runs, `--force-with-lease`, and no shell-command construction.
Its overlap with git-extras is package-manager-relevant because PATH order can decide which command a user runs when both packages are installed.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
git-dmb | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/hartwork/git-delete-merged-branches
install metadata
| Package key | brew:git-delete-merged-branches |
|---|---|
| Version | 7.6.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/git-delete-merged-branches |
| Homepage | https://github.com/hartwork/git-delete-merged-branches |
| Repository | https://github.com/hartwork/git-delete-merged-branches |
| Upstream docs | https://github.com/hartwork/git-delete-merged-branches#readme |
| License | GPL-3.0-or-later |
| Source archive | https://files.pythonhosted.org/packages/f5/1c/408c4061353020636b16620487ebd36e5ec5b4ebec89ba2af4817698f5c1/git_delete_merged_branches-7.6.0.tar.gz |
| Last updated | 2026-06-18T09:25:51+09:00 |
| Pulse | updated |
| Dependencies | python@3.14 |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | git-delete-merged-branches |
| Version Scheme | 0 |
| Revision | 0 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
git-delete-merged-branches 7.5.0-1
command-line tool to delete merged git branches
https://github.com/hartwork/git-delete-merged-branches
sudo apt install git-delete-merged-branchespython3-git-delete-merged-branches 7.5.0-1
command-line tool to delete merged git branches (Python module)
https://github.com/hartwork/git-delete-merged-branches
sudo apt install python3-git-delete-merged-branchesgit-delete-merged-branches
nix profile install nixpkgs#git-delete-merged-branchesgit-delete-merged-branches 7.4.0-1
command-line tool to delete merged git branches
https://github.com/hartwork/git-delete-merged-branches
sudo apt install git-delete-merged-branchespython3-git-delete-merged-branches 7.4.0-1
command-line tool to delete merged git branches (Python module)
https://github.com/hartwork/git-delete-merged-branches
sudo apt install python3-git-delete-merged-branchessource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.