# 使用 Homebrew, Nix 安装 git-gerrit

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-gerrit
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gerrit
```

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

## 软件包事实

- **软件包键:** brew:git-gerrit
- **软件包管理器:** Homebrew
- **版本:** 0.3.0
- **来源摘要:** Gerrit code review helper scripts
- **主页:** <https://github.com/fbzhong/git-gerrit>
- **仓库:** <https://github.com/fbzhong/git-gerrit>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gerrit (别名)
- gerrit-cherry-pick (别名)
- git-gerrit (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

git-gerrit is a collection of helper scripts for teams using Gerrit Code Review with Git. It wraps common review actions such as pushing changes, listing changes, applying patch sets, reviewing, submitting, and abandoning changes.

### 项目历史

The README says the project was forked from `gerrit-tools`, which itself passed through work by André Arko, Steffen Gebert, and Philipp Gampe before Robin Zhong adapted it for the TYPO3 review workflow. The 0.1.0 line marked the fork, while 0.2.0 and 0.3.0 added patchset commands, bash completion, installation scripts, approval options, and workflow fixes.

### 采用历史

The project belongs to the era when many open-source and enterprise projects used Gerrit review flows that required pushing to special refs and handling patch sets. Its adoption signal is narrow but concrete: the README names TYPO3 review needs, and Homebrew packaging made the scripts available to macOS developers.

### 使用方式

Practitioners use `git gerrit push` to send review changes, `git gerrit changes` to inspect review items, `git gerrit apply` to check out a change for review, and `git gerrit review` or `git gerrit submit` to complete review actions. The companion `gerrit` and `gerrit-cherry-pick` scripts wrap Gerrit SSH commands and patch cherry-picking.

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

git-gerrit shows how package managers carried local workflow glue for code-review systems before richer Gerrit integrations became common in IDEs and hosting platforms.

### 时间线

- 2012: Repository created on GitHub with BSD-licensed helper scripts.
- 2012: 0.1.0 forked from earlier gerrit-tools work.
- 2012: 0.2.0 added patchset support, bash completion, and installation scripts.
- 2012: 0.3.0 added review-branch push behavior and approval-list options.

### Related projects

- git-gerrit descends from gerrit-tools and relates to Gerrit Code Review, Git refs-for-review workflows, and shell completion packages for Git subcommands.

### 来源

- <https://formulae.brew.sh/formula/git-gerrit>
- <https://github.com/fbzhong/git-gerrit>
- <https://github.com/fbzhong/git-gerrit/blob/master/README.md>
- <https://github.com/fbzhong/git-gerrit/tags>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - gerrit: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/ge/gerrit/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-gerrit.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-gerrit.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
