Install git review on Linux (RHEL/Fedora/Centos)

git review command is not a git command error

Let try this command to get the patch,

$ git review -d <patch-id>

Getting this error when using git review command in my linux environment.

git: 'review' is not a git command. See 'git --help'.

I think, git-review package is not installed in my environment. lets install the git-review package and try the same command again.

How to install git-reiview on Linux environment (RHEL/Fedora/Centos) ?

$ pip install git-review

Output:

Collecting git-review
  Downloading git_review-1.28.0-py2.py3-none-any.whl (46 kB)
 Requirement already satisfied: requests>=1.1 in /home/stack/venv/lib/python3.6/site-packages (from git-review) (2.24.0)
Requirement already satisfied: six in /home/stack/venv/lib/python3.6/site-packages (from git-review) (1.15.0)
Requirement already satisfied: certifi>=2017.4.17 in /home/stack/venv/lib/python3.6/site-packages (from requests>=1.1->git-review) (2020.6.20)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/stack/venv/lib/python3.6/site-packages (from requests>=1.1->git-review) (1.25.10)
Requirement already satisfied: idna<3,>=2.5 in /home/stack/venv/lib/python3.6/site-packages (from requests>=1.1->git-review) (2.10)
Requirement already satisfied: chardet<4,>=3.0.2 in /home/stack/venv/lib/python3.6/site-packages (from requests>=1.1->git-review) (3.0.4)
Installing collected packages: git-review
Successfully installed git-review-1.28.0
WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available.
You should consider upgrading via the '/home/stack/venv/bin/python3.6 -m pip install --upgrade pip' command.

Lets try using git review command

$ git review -d <patch-id>

Output:

Downloading refs/changes// from gerrit
Switched to branch "review//"




Python installation

Privacy Policy  |  Copyrightcopyright symbol2020 - All Rights Reserved.  |  Contact us   |  Report website issues in Github   |  Facebook page   |  Google+ page

Email Facebook Google LinkedIn Twitter
^