# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 git-review

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

- MacPorts (94%):

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

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:git-review
- **软件包管理器:** Homebrew
- **版本:** 2.5.0
- **来源摘要:** Submit git branches to gerrit for review
- **主页:** <https://opendev.org/opendev/git-review>
- **最后更新:** 2026-05-21T12:11:46Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-review (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

没有找到 git-review 的匹配本地密钥处理 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: .gitreview, ~/.config/git-review/git-review.conf, /etc/git-review/git-review.conf
## 其他软件包管理器记录

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


## 来源

- 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
