Fedora/CentOS

sudo yum install git-review

If, while using git-review, you see ImportError: No module named requests, you’ll need to install python-requests:

sudo yum install python-requests

OpenSUSE

Install (YaST) the python-setuptools, then

easy_install pip
pip install git-review==1.21

As of OpenSUSE 13.1, git-review is included in the main repository, so you can use,

sudo zypper in git-review

OS X

OS X comes with Python (for now) but not the installation programs supported by Git and git-review.

Open Terminal and change to a directory you’re comfortable downloading test Git packages to (such as Downloads)
Download and install the OS X Installer for Git (for OS X 10.8 and earlier only, OS X 10.9 ships with Git pre-installed)
Install pip (Note: Already included in some older versions of OS X):

sudo easy_install pip

Update pip/setuptools (for OS X 10.7 and earlier only)

sudo pip install -U setuptools

Install git-review:

sudo pip install git-review

参考

https://www.mediawiki.org/wiki/Gerrit/git-review#Fedora.2FCentOS

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐