# Install git-codereview with Homebrew, Nix

Tool for working with Gerrit code reviews. Version 1.20.0 via Homebrew; verified 2026-07-25. Also installable with nix: nix profile install nixpkgs#git-codereview.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:git-codereview
- **Package manager:** Homebrew
- **Version:** 1.20.0
- **Source summary:** Tool for working with Gerrit code reviews
- **Homepage:** <https://pkg.go.dev/golang.org/x/review/git-codereview>
- **Repository:** <https://github.com/golang/review>
- **Last updated:** 2026-07-25T20:55:22-04:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- git-codereview (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.20.0
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

No matching local secret-handling manifest was found for git-codereview. Nucleus package metadata is still published here so future coverage has a stable package 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
## Other Package-Manager Records

- 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)


## Sources

- 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
