macOS
brew install ugitlocal Homebrew formula metadata
sudo port install ugitMacPorts ports tree · devel/ugit/Portfile · source: api.github.com
brew
Undo git commands. Your damage control git buddy. Version 5.9 via Homebrew; verified from local package data.
install
brew install ugitlocal Homebrew formula metadata
sudo port install ugitMacPorts ports tree · devel/ugit/Portfile · source: api.github.com
nix profile install nixpkgs#ugitnixpkgs package indexes · pkgs/by-name/ug/ugit/package.nix · source: api.github.com
overview
Undo git commands. Your damage control git buddy
history
ugit is a shell-oriented Git recovery helper for undoing common accidental Git operations from an interactive terminal workflow.
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.
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.
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.
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.
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 |
|---|---|---|---|
ugit | cli | global executable |
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.
https://github.com/Bhupesh-V/ugit
install metadata
| Package key | brew:ugit |
|---|---|
| Version | 5.9 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/ugit |
| Homepage | https://bhupesh.me/undo-your-last-git-mistake-with-ugit/ |
| Repository | https://github.com/Bhupesh-V/ugit |
| Upstream docs | https://github.com/Bhupesh-V/ugit#readme |
| License | MIT |
| Source archive | https://github.com/Bhupesh-V/ugit/archive/refs/tags/v5.9.tar.gz |
| Dependencies | bash, fzf |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ugit |
| Version Scheme | 0 |
| Revision | 0 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
ugit
nix profile install nixpkgs#ugitugit
sudo port install ugitsource 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.