Automic VaultAutomic Vault

brew

Install git-delete-merged-branches with Homebrew, apt, Nix

Command-line tool to delete merged Git branches. Version 7.6.0 via Homebrew; verified 2026-06-18.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install git-delete-merged-branches

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install git-delete-merged-branches

Debian stable package indexes · git-delete-merged-branches · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#git-delete-merged-branches

nixpkgs package indexes · pkgs/by-name/gi/git-delete-merged-branches/package.nix · source: api.github.com

overview

Package summary

Command-line tool to delete merged Git branches

Commands and aliases

  • git-dmb

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2020: The repository begins with version 1.0.0 code.
  • 2020: Rapid 1.x through 6.x releases establish the CLI and packaging shape.
  • 2021: Version 6.4.0 continues the maintained Python CLI line.
  • 2022: Version 7.4.0 lands after several 7.x releases.
  • 2025: Version 7.5.0 is released.
  • 2026: Version 7.6.0 is released.

Related projects

  • git-extras is a related utility collection and a direct command-name conflict noted by the README.
  • GitHub's automatic deletion of branches for merged pull requests is mentioned as a complementary hosting-side cleanup feature.
  • `git cherry` is the Git command named by the README as part of merge-detection logic.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
git-dmbcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version7.6.0
manager updated2026-06-18
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/hartwork/git-delete-merged-branches

install metadata

Package metadata

Package keybrew:git-delete-merged-branches
Version7.6.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/git-delete-merged-branches
Homepagehttps://github.com/hartwork/git-delete-merged-branches
Repositoryhttps://github.com/hartwork/git-delete-merged-branches
Upstream docshttps://github.com/hartwork/git-delete-merged-branches#readme
LicenseGPL-3.0-or-later
Source archivehttps://files.pythonhosted.org/packages/f5/1c/408c4061353020636b16620487ebd36e5ec5b4ebec89ba2af4817698f5c1/git_delete_merged_branches-7.6.0.tar.gz
Last updated2026-06-18T09:25:51+09:00
Pulseupdated
Dependenciespython@3.14
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegit-delete-merged-branches
Version Scheme0
Revision0
Conflicts With
  • git-extras
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

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-branches
  • Section: vcs
  • Architecture: all
  • 2 dependencies
  • normalized package name match
  • Matched by: Git Delete Merged Branches
Debian stable package indexes · deb.debian.org · Debian stable package indexes: git-delete-merged-branches from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-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-branches
  • Section: python
  • Architecture: all
  • Source Package: git-delete-merged-branches
  • 4 dependencies
  • normalized package name match
  • Matched by: Git Delete Merged Branches
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-git-delete-merged-branches from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

git-delete-merged-branches

nix profile install nixpkgs#git-delete-merged-branches
  • normalized package name match
  • Matched by: Git Delete Merged Branches
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gi/git-delete-merged-branches/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

git-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-branches
  • Section: universe/vcs
  • Architecture: all
  • 2 dependencies
  • normalized package name match
  • Matched by: Git Delete Merged Branches
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: git-delete-merged-branches from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-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-branches
  • Section: universe/python
  • Architecture: all
  • Source Package: git-delete-merged-branches
  • 4 dependencies
  • normalized package name match
  • Matched by: Git Delete Merged Branches
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-git-delete-merged-branches from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment