macOS
brew install ugitlocal Homebrew formula metadata
sudo port install ugitMacPorts ports tree · devel/ugit/Portfile · 来源: api.github.com
安装
brew install ugitlocal Homebrew formula metadata
sudo port install ugitMacPorts ports tree · devel/ugit/Portfile · 来源: api.github.com
nix profile install nixpkgs#ugitnixpkgs package indexes · pkgs/by-name/ug/ugit/package.nix · 来源: api.github.com
概览
Undo git commands. Your damage control git buddy
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ugit | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/Bhupesh-V/ugit
安装元数据
| 软件包键 | brew:ugit |
|---|---|
| 版本 | 5.9 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/ugit |
| 主页 | https://bhupesh.me/undo-your-last-git-mistake-with-ugit/ |
| 仓库 | https://github.com/Bhupesh-V/ugit |
| 上游文档 | https://github.com/Bhupesh-V/ugit#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/Bhupesh-V/ugit/archive/refs/tags/v5.9.tar.gz |
| 依赖 | bash, fzf |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
ugit
nix profile install nixpkgs#ugitugit
sudo port install ugit来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.