macOS
brew install git-delete-merged-brancheslocal Homebrew formula metadata
安装
brew install git-delete-merged-brancheslocal Homebrew formula metadata
sudo apt install git-delete-merged-branchesDebian stable package indexes · git-delete-merged-branches · 来源: deb.debian.org
nix profile install nixpkgs#git-delete-merged-branchesnixpkgs package indexes · pkgs/by-name/gi/git-delete-merged-branches/package.nix · 来源: api.github.com
概览
Command-line tool to delete merged Git branches
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
git-dmb | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/hartwork/git-delete-merged-branches
安装元数据
| 软件包键 | brew:git-delete-merged-branches |
|---|---|
| 版本 | 7.6.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/git-delete-merged-branches |
| 主页 | https://github.com/hartwork/git-delete-merged-branches |
| 仓库 | https://github.com/hartwork/git-delete-merged-branches |
| 上游文档 | https://github.com/hartwork/git-delete-merged-branches#readme |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://files.pythonhosted.org/packages/4d/9e/538f1ed26a78b216fdd3aeae69385db83d2d4c21ca9894423eb709a86fa4/git_delete_merged_branches-7.6.1.tar.gz |
| 最后更新 | 2026-07-23T20:48:43Z |
| Pulse | updated |
| 依赖 | python@3.14 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-branches来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.