macOS
brew install git-trimlocal Homebrew formula metadata
brew
Trim your git remote tracking branches that are merged or gone. Version 0.4.4 via Homebrew; verified from local package data.
install
brew install git-trimlocal Homebrew formula metadata
nix profile install nixpkgs#git-trimnixpkgs package indexes · pkgs/by-name/gi/git-trim/package.nix · source: api.github.com
overview
Trim your git remote tracking branches that are merged or gone
history
git-trim is a Rust Git extension for cleaning local tracking branches whose upstream branches have been merged, deleted, or left behind after pull-request work.
The project appeared on GitHub in January 2020. Its README frames the tool as a safer companion to git fetch --prune, because fetch pruning removes remote-tracking refs but leaves local tracking branches for the user to inspect and delete.
The project evolved around Git workflow edge cases rather than a large feature surface. Release notes for the 0.4 series describe base-branch detection from remote HEAD refs, worktree branch preservation, richer branch classification, and detailed skip messages.
Adoption followed normal Git-extension channels: GitHub release binaries, cargo install, Homebrew, and other package-manager formulas. The package fits repositories where pull-request branches accumulate faster than developers want to prune them by hand.
Practitioners run git trim after reviews or after synchronizing a repository. The README recommends dry-run mode for cautious use and trim.bases configuration for workflows with base branches such as develop and master.
git-trim matters to package and tooling users because it turns a fragile shell one-liner into a named Git subcommand that understands merged, stray, squash-merged, rebased, and triangular-workflow branches.
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-trim | 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/foriequal0/git-trim
install metadata
| Package key | brew:git-trim |
|---|---|
| Version | 0.4.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/git-trim |
| Homepage | https://github.com/foriequal0/git-trim |
| Repository | https://github.com/foriequal0/git-trim |
| Upstream docs | https://github.com/foriequal0/git-trim#readme |
| License | MIT |
| Source archive | https://github.com/foriequal0/git-trim.git |
| Dependencies | openssl@3 |
| Build dependencies | pkgconf, rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | git-trim |
| Version Scheme | 0 |
| Revision | 0 |
| 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-trim
nix profile install nixpkgs#git-trimsource 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.