Automic VaultAutomic Vault

brew

Install git-trim with Homebrew, Nix

Trim your git remote tracking branches that are merged or gone. Version 0.4.4 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install git-trim

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#git-trim

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

overview

Package summary

Trim your git remote tracking branches that are merged or gone

Commands and aliases

  • git-trim

history

Project history and usage

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.

Project history

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 history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2020: Repository created and 0.4 releases added workflow-oriented branch detection improvements.
  • 2022: v0.4.3 release shipped dependency updates and packaged binaries.

Related projects

  • git fetch --prune, git branch --merged, git2, cargo, Homebrew

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 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 2 build 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-trimcliglobal 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 version0.4.4
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/foriequal0/git-trim

install metadata

Package metadata

Package keybrew:git-trim
Version0.4.4
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/git-trim
Homepagehttps://github.com/foriequal0/git-trim
Repositoryhttps://github.com/foriequal0/git-trim
Upstream docshttps://github.com/foriequal0/git-trim#readme
LicenseMIT
Source archivehttps://github.com/foriequal0/git-trim.git
Dependenciesopenssl@3
Build dependenciespkgconf, rust
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegit-trim
Version Scheme0
Revision0
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.

Nix95%

git-trim

nix profile install nixpkgs#git-trim
  • normalized package name match
  • Matched by: Git Trim
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gi/git-trim/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

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