# Install git-review with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Submit git branches to gerrit for review. Version 2.5.0 via Homebrew; verified 2026-05-21. Also installable with debian: sudo apt install git-review.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install git-review
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install git-review
```

  Evidence: MacPorts ports tree: devel/git-review/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add git-review
```

  Evidence: Alpine Linux edge package indexes: git-review from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install git-review
```

  Evidence: Debian stable package indexes: git-review from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install git-review
```

  Evidence: Fedora Rawhide package metadata: git-review from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

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

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

- zypper (92%):

```sh
sudo zypper install git-review
```

  Evidence: openSUSE Tumbleweed package metadata: git-review from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:git-review
- **Package manager:** Homebrew
- **Version:** 2.5.0
- **Source summary:** Submit git branches to gerrit for review
- **Homepage:** <https://opendev.org/opendev/git-review>
- **Last updated:** 2026-05-21T12:11:46Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- git-review (alias)

## Install behavior

- Bottle: not available

## Freshness

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

git-review is an OpenDev tool for submitting Git branches to Gerrit. It standardizes the client-side workflow around `.gitreview` project metadata, Gerrit remotes, Change-Id hooks, and patchset upload/download commands.

### Project history

The project grew out of the OpenStack and OpenDev review workflow, where Gerrit is the central code-review system. Its repository has a long 1.x tag series and a 2.x series documented through OpenDev release notes, reflecting years of adaptation to Gerrit, Git, OpenSSH, and Python changes.

The 2.0.0 release marked a major maintenance boundary by dropping Python 2.7 support and removing Gerrit draft-change options after Gerrit itself removed that state. Later releases added safer hook installation, support for newer Git and OpenSSH behavior, and upload options such as hashtags, patchset messages, and carbon-copy recipients.

### Adoption history

git-review became significant in the OpenStack/OpenDev ecosystem because it turned Gerrit's `refs/for/*` push workflow into a repeatable Git subcommand. Package availability through PyPI, system packages, and Homebrew made it convenient for contributors joining Gerrit-hosted projects.

### How it is used

Practitioners run `git review` to upload the working branch to Gerrit, use options for target branch, topic, reviewers, and CCs, and use `git review -d` to download changes or patchsets for local review. On first run, it can read `.gitreview`, create the Gerrit remote, and install the commit-msg hook used for Change-Id generation.

### Why package nerds care

The package is notable because it encodes a whole hosted-review convention in a small command-line client. For package maintainers and contributors, it reduces Gerrit onboarding friction and keeps repository-specific review metadata versioned alongside the project.

### Timeline

- 1.0: Early public tag in the OpenDev repository.
- 1.28.0: OpenStack-specific topic-name automation removed.
- 2.0.0: Python 2.7 support and Gerrit draft-change upload options removed.
- 2.4.0: Gerrit commit-msg hook embedded for safer setup.
- 2.5.0: CC upload option and branch-filtered review listing added.

### Related projects

- Related projects and systems include Gerrit, OpenDev, OpenStack, Git, and the `.gitreview` metadata convention used by Gerrit-hosted repositories.

### Sources

- <https://formulae.brew.sh/formula/git-review>
- <https://opendev.org/opendev/git-review>
- <https://opendev.org/opendev/git-review/raw/branch/master/README.rst>
- <https://opendev.org/opendev/git-review/raw/branch/master/doc/source/installation.rst>
- <https://opendev.org/opendev/git-review/raw/branch/master/doc/source/releasenotes.rst>
- <https://opendev.org/opendev/git-review/raw/branch/master/doc/source/usage.rst>


## Security Notes

No matching local secret-handling manifest was found for git-review. 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: .gitreview, ~/.config/git-review/git-review.conf, /etc/git-review/git-review.conf
## Other Package-Manager Records

- Debian apt - git-review - 2.4.0-1: normalized package name match | Debian stable package indexes: git-review from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | git command for submitting branches to Gerrit | https://opendev.org/opendev/git-review
- Nix - git-review: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-review/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - git-review - 2.3.1-3: normalized package name match | Ubuntu 24.04 LTS package indexes: git-review from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | git command for submitting branches to Gerrit | https://opendev.org/opendev/git-review
- apk - git-review - 2.5.0-r2: normalized package name match | Alpine Linux edge package indexes: git-review from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | git command for submitting branches to Gerrit | https://opendev.org/opendev/git-review
- apk - git-review-doc - 2.5.0-r2: normalized package name match | Alpine Linux edge package indexes: git-review-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | git command for submitting branches to Gerrit (documentation) | https://opendev.org/opendev/git-review
- apk - git-review-pyc - 2.5.0-r2: normalized package name match | Alpine Linux edge package indexes: git-review-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for git-review | https://opendev.org/opendev/git-review
- dnf - git-review - 2.5.0-3.fc45: normalized package name match | Fedora Rawhide package metadata: git-review from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A Git helper for integration with Gerrit | https://opendev.org/opendev/git-review
- zypper - git-review - 2.5.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: git-review from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tool to submit code to Gerrit | https://git.openstack.org/cgit/openstack-infra/git-review
- MacPorts - git-review: normalized package name match | MacPorts ports tree: devel/git-review/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/git-review.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-review.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
