macOS
brew install git-trimlocal Homebrew formula metadata
brew / rank 3994
Trim your git remote tracking branches that are merged or gone. Version 0.4.4 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#git-trim.
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 | executable | indexed executable | Discovered from the local executable index. |
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.
install metadata
| Package key | brew:git-trim |
|---|---|
| Version | 0.4.4 |
| Package manager | Homebrew |
| Homepage | https://github.com/foriequal0/git-trim |
| Repository | https://github.com/foriequal0/git-trim |
| Bottle | not recorded |
| Service | none declared |
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.