# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-gerrit>
- **版本:** 0.3.0
- **来源摘要:** Gerrit code review helper scripts
- **主页:** <https://github.com/fbzhong/git-gerrit>
- **仓库:** <https://github.com/fbzhong/git-gerrit>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/fbzhong/git-gerrit/archive/refs/tags/v0.3.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

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

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.3.0
- 本地数据: OK
- 上游仓库: https://github.com/fbzhong/git-gerrit
- 检测到的最新版本: v0.3.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** git-gerrit
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** gerrit-tools
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [git-review](https://pkg.so/zh-hans/brew/git-review/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, gerrit, git.
- [git-codereview](https://pkg.so/zh-hans/brew/git-codereview/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, gerrit, git.
- [gerrit-tools](https://pkg.so/zh-hans/brew/gerrit-tools/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, gerrit, git.
- [hunk](https://pkg.so/zh-hans/brew/hunk/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, git.
- [difi](https://pkg.so/zh-hans/brew/difi/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, git.
- [diffr](https://pkg.so/zh-hans/brew/diffr/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, git.
- [git-appraise](https://pkg.so/zh-hans/brew/git-appraise/) - Shares pkgdb curated category or tags: cli, code-review, developer-tools, git.
- [gh](https://pkg.so/zh-hans/brew/gh/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [git-cinnabar](https://pkg.so/zh-hans/brew/git-cinnabar/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, git, helper.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
