pkg.soopen package index

brew / rank 3994

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. Also installable with nix: nix profile install nixpkgs#git-trim.

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 bottle metadata was recorded.

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-trimexecutableindexed executableDiscovered from the local executable index.

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-08-03
manager version0.4.4
manager updated
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:git-trim
Version0.4.4
Package managerHomebrew
Homepagehttps://github.com/foriequal0/git-trim
Repositoryhttps://github.com/foriequal0/git-trim
Bottlenot recorded
Servicenone declared

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
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation