# Installer ugit avec Homebrew, MacPorts, Nix

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

## installation

```sh
sudo av install brew:ugit
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install ugit
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ugit
```

  Preuve: MacPorts ports tree: devel/ugit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ugit
```

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

## Faits du paquet

- **Clé du paquet:** brew:ugit
- **Gestionnaire de paquets:** Homebrew
- **Version:** 5.9
- **Résumé source:** Undo git commands. Your damage control git buddy
- **Page d'accueil:** <https://bhupesh.me/undo-your-last-git-mistake-with-ugit/>
- **Dépôt:** <https://github.com/Bhupesh-V/ugit>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- ugit (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

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

ugit is a shell-oriented Git recovery helper for undoing common accidental Git operations from an interactive terminal workflow.

### Historique du projet

The public repository was created in 2021. The upstream README describes ugit as a guided tool for undoing Git mistakes, with support for operations such as commit, add, push, branch deletion, pull, reset, stash, merge, cherry-pick, and file restoration.

The author's project article, published on April 30, 2021, framed ugit as a small tool for beginner-to-intermediate Git users who otherwise lose time searching for recovery commands. The project later continued through tagged releases, including v5.0 in 2021 and v5.9 in 2025.

### Historique d'adoption

ugit's official README documents installation through Homebrew on macOS, an install script on Linux, Docker, shell plugin managers, and manual setup on Windows with Git Bash and fzf. The supplied package data records packaging in Homebrew, MacPorts, and Nix.

The README's news section records early attention in 2021 and 2022, including a Changelog News mention, a GitHub India Constellation talk about Git tooling, and the project passing 1,000 GitHub stars in October 2022.

### Modes d'utilisation

ugit is used after a Git mistake to pick a scenario and run the relevant recovery steps. It depends on Bash, Git, fzf, and standard Unix utilities, which makes it fit naturally into interactive shell use rather than IDE-only workflows.

The README also warns that some recovery paths depend on Git reflog retention, so package users may need to tune Git garbage-collection settings if they expect longer undo windows.

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

For package-manager users, ugit is a small example of terminal UX around an existing tool rather than a new VCS. Its value is packaging a set of hard-to-remember Git recovery recipes into a command that can be installed next to fzf, git-extras, and other shell helpers.

### Chronologie

- 2021: Public GitHub repository created.
- 2021: Author published the ugit project article and the project appeared on Changelog News.
- 2021: v5.0 release published.
- 2022: README recorded that ugit crossed 1,000 GitHub stars.
- 2025: v5.9 release published.

### Related projects

- The README notes a command-name conflict with git-extras, because both projects can provide a git-undo command.
- ugit is built around Git and fzf and is commonly installed alongside other shell and Git workflow helpers.

### Sources

- <https://api.github.com/repos/Bhupesh-V/ugit>
- <https://api.github.com/repos/Bhupesh-V/ugit/releases?per_page=10>
- <https://bhupesh.me/undo-your-last-git-mistake-with-ugit/>
- <https://github.com/Bhupesh-V/ugit>
- <https://raw.githubusercontent.com/Bhupesh-V/ugit/master/README.md>
- source_facts.package-manager


## 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 - ugit: normalized package name match | nixpkgs package indexes: pkgs/by-name/ug/ugit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - ugit: normalized package name match | MacPorts ports tree: devel/ugit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/ugit.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ugit.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
