# 使用 Homebrew, Nix 安装 git-recent

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-recent
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:git-recent
- **软件包管理器:** Homebrew
- **版本:** 2.2.0
- **来源摘要:** Browse your latest git branches, formatted real fancy
- **主页:** <https://github.com/paulirish/git-recent>
- **仓库:** <https://github.com/paulirish/git-recent>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-recent (别名)
- git-recent-og (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.2.0
## 项目历史与用法

git-recent is a Git branch navigation helper by Paul Irish for browsing recently touched branches and checking one out with a short interactive flow.

### 项目历史

The README records the tool's origin in Paul Irish's dotfiles in May 2016, followed by a standalone repository and npm publication in August 2016. The original script became git-recent-og after the 2.0 rewrite.

The 2.0 line, released in 2025 according to the changelog, added an fzf-based interactive UI for browsing branches, viewing branch-specific commits, inspecting a diff against main, and checking out the selected branch.

### 采用历史

git-recent spread as a small personal-workflow utility through npm and Homebrew, with Nix also recorded in the input package metadata. Its adoption significance comes less from enterprise deployment and more from shell users copying a tiny Git helper into daily branch-switching habits.

### 使用方式

Practitioners run git recent inside a repository, navigate the fzf list of branches, press Enter to check out a selection, and use Ctrl-O to inspect a diff. The README notes optional delta integration for formatted diffs and worktree detection that can guide a user to an existing checkout.

Users who do not want the fzf dependency can run git recent-og, the renamed 2016 implementation, with options such as -n to limit the number of branches shown.

### 为什么软件包爱好者会关心

git-recent is a compact example of the Git subcommand packaging pattern: one executable on PATH becomes a Git verb, distributed through npm, Homebrew, and Nix, and upgraded without changing the underlying Git data model.

### 时间线

- 2016: Script added to paulirish/dotfiles.
- 2016: Standalone repository released and package published to npm.
- 2018: Count parameter added.
- 2019: Final 1.x bugfix recorded in the README changelog.
- 2025: 2.0 upgrade added fzf integration and renamed the original implementation to git-recent-og.

### Related projects

- fzf powers the 2.x interactive branch picker.
- delta can format diffs shown from the interactive UI.
- The README points branch-navigation enthusiasts to git-fuzzy, lazygit, tig, and fzf-git.sh.

### 来源

- <https://formulae.brew.sh/formula/git-recent>
- <https://github.com/paulirish/dotfiles/commit/1ca1ff760832af558447145fa2a367046b1829d2>
- <https://github.com/paulirish/git-recent>
- <https://github.com/paulirish/git-recent#readme>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - git-recent: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-recent/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-recent.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-recent.yml)


## 来源

- 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
