# Installer git-trim avec Homebrew, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de git-trim pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:git-trim
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install git-trim
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#git-trim
```

  Preuve: nixpkgs package indexes: pkgs/by-name/gi/git-trim/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Faits du paquet

- **Clé du paquet:** brew:git-trim
- **Gestionnaire de paquets:** Homebrew
- **Version:** 0.4.4
- **Résumé source:** Trim your git remote tracking branches that are merged or gone
- **Page d'accueil:** <https://github.com/foriequal0/git-trim>
- **Dépôt:** <https://github.com/foriequal0/git-trim>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- git-trim (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 0.4.4
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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

### Sources

- <https://crates.io/crates/git-trim>
- <https://formulae.brew.sh/formula/git-trim>
- <https://github.com/foriequal0/git-trim>
- <https://github.com/foriequal0/git-trim/releases>
- <https://raw.githubusercontent.com/foriequal0/git-trim/master/README.md>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Nix - git-trim: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-trim/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/git-trim.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-trim.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
