# 使用 Homebrew, Nix 安装 git-codereview

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-codereview
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:git-codereview
- **软件包管理器:** Homebrew
- **版本:** 1.20.0
- **来源摘要:** Tool for working with Gerrit code reviews
- **主页:** <https://pkg.go.dev/golang.org/x/review/git-codereview>
- **仓库:** <https://github.com/golang/review>
- **最后更新:** 2026-07-25T20:55:22-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-codereview (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

git-codereview is the Go project's Git helper for Gerrit-based code review. It packages project-specific contribution rules as Git subcommands, making the Go review process reproducible from a local checkout.

### 项目历史

The tool lives in the golang.org/x/review repository and its source documentation carries a 2014 Go Authors copyright notice. It was built around Gerrit's single-change review model: local work branches track pending changes, and amendments update the same review through a stable Change-Id.

### 采用历史

Its adoption is tightly connected to the Go contribution process. The official Go contribution guide instructs contributors to install git-codereview with go install, create a Gerrit account, use git codereview change to create or amend commits, and use git codereview mail to send changes for review.

### 使用方式

Practitioners use git-codereview to create change branches, install hooks, run gofmt on modified files, upload patches to Gerrit, revise reviews by amending commits, and submit approved changes. It supports both the common single-commit branch workflow and multi-commit stacks when a larger change needs sequencing.

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

For package records, git-codereview is a specialized but influential example of a project-specific workflow tool. It demonstrates how a language project can distribute its contribution conventions as a versioned command rather than relying only on prose documentation.

### 时间线

- 2014: Source documentation copyright reflects the early Go Authors implementation period.
- Go contribution guide: git-codereview is documented as the supported Gerrit submission helper.

### Related projects

- git-codereview is tied to Gerrit, go-review.googlesource.com, and the broader Go contribution workflow.

### 来源

- <https://formulae.brew.sh/formula/git-codereview>
- <https://github.com/golang/review>
- <https://go.dev/doc/contribute>
- <https://pkg.go.dev/golang.org/x/review/git-codereview>
- <https://raw.githubusercontent.com/golang/review/master/git-codereview/doc.go>


## 安全说明

没有找到 git-codereview 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: codereview.cfg, .git/config, ~/.gitconfig
## 其他软件包管理器记录

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
