Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix 安装 ugit

查看 ugit 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ugit

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ugit

MacPorts ports tree · devel/ugit/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#ugit

nixpkgs 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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 2 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ugitcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本5.9
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v5.9

https://github.com/Bhupesh-V/ugit

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键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 DatabaseHomebrew formula API
Taphomebrew/core
Full Nameugit
Version Scheme0
Revision0
Conflicts With
  • git-extras
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

ugit

nix profile install nixpkgs#ugit
  • normalized package name match
  • 匹配方式:Ugit
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ug/ugit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

ugit

sudo port install ugit
  • normalized package name match
  • 匹配方式:Ugit
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/ugit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment