Gerrit is a web-based code review tool built on Git. Developers push their commits to Gerrit for review instead of pushing straight to a branch. Reviewers comment and vote on each change, and only approved changes are submitted to the target branch. Large projects such as Android and Chromium use it.
The posts cover Gerrit from basic concepts through to administration. Overview articles explain its architecture, features, use cases and alternatives, and a terminology guide explains changes, Change-Ids, patch sets and review ratings. Workflow guides show how to amend a commit to address review feedback while keeping the same Change-Id, and how to revert a change after it has been submitted. Administration posts cover installing Gerrit with Git, an older setup using Tomcat and MySQL, authentication types such as OpenID and HTTP, signed push support, the Verified label that CI systems vote on, and compiling plugins from source with Bazel.
The material is for developers joining a project that uses Gerrit, build engineers connecting CI votes to reviews and administrators who run a Gerrit server. There is also a set of interview questions and answers for anyone preparing for roles that use Gerrit.
Start here
- What is Gerrit and How it works? An Overview and Its Use Cases? – Explains how Gerrit's Git-based review architecture works, plus its main use cases and alternatives.
- What is a Change and Patch set in Gerrit? – Covers the core terms: change, Change-Id, patch set, submit and review ratings.
- Git/Gerrit Installation and Setup – Walks through getting a Gerrit server running and connected to your Git repositories.
- How to replace Changes after the Gerrit review without changing the commit id? – Shows how to amend a commit after review feedback so it becomes a new patch set.
- How to revert the changes once its submitted in Gerrit – Explains how to undo a submitted change safely using Gerrit's Revert button.
- What is “Install Verified label” in Gerrit? – Explains how CI tools vote through the Verified label and how admins configure it.
- Authentication Types in Gerrit explained! – Compares OpenID, OpenID_SSO and HTTP authentication so you can pick a sign-in method.
- Top Gerrit interview questions and answers – Interview questions on Gerrit's Git integration, rebasing and pushing commits for review.
Latest Gerrit articles
Install and Configure Gerrit on CentOS and Ubuntu (MySQL + Apache Reverse Proxy)
A practical, step-by-step guide to installing Gerrit for code review on CentOS/RHEL and Ubuntu/Debian. Includes package command comparisons, setup workflow, Apache proxy configuration, and verification checks.
Gerrit Performance Tuning Cheat Sheet: Workflow, Bottlenecks, and Practical Commands
A practical Gerrit performance guide for DevOps and platform engineers. Learn a repeatable tuning workflow, where bottlenecks usually appear, and which commands to run first.
Using Gerrit to Strengthen Git Code Review and Automated Code Analysis
Gerrit extends Git with patch-set based code review and CI gating so teams can catch quality issues before merge. This guide shows the workflow, key commands, and practical integration patterns.
What is Gerrit and use cases of Gerrit ?
What is Gerrit? Gerrit is an exceptionally extensible and configurable tool for online code review and repository management for projects utilizing the Git version control system. It…
Gerrit Setup using Tomcat and Mysql
MySQL database CREATE USER ‘gerrit’@’localhost’ IDENTIFIED BY ‘gerrit’; CREATE DATABASE gerritdb; ALTER DATABASE gerritdb charset=latin1; GRANT ALL ON gerritdb.* TO ‘gerrit’@’localhost’; FLUSH PRIVILEGES; exit; Apache Configuration sudo…
Git/Gerrit Installation and Setup
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
What is Gerrit and How it works? An Overview and Its Use Cases?
What is Gerrit? Gerrit is an exceptionally extensible and configurable apparatus for online code survey and storehouse the executives for projects utilizing the Git rendition control framework….
Top Gerrit interview questions and answers
How do you implement Gerrit? Make sure that you are in the directory of the code repository (the command pwd tells you where exactly you are). Update…
Best Branching and Merging strategies in Gerrit
Best Branching and Merging strategies in Gerrit Step 1 – First Lets read this article about Best Branching and Merging strategies in git http://www.scmgalaxy.com/tutorials/best-branching-and-merging-strategies-in-git/ Step 2 –…
How to revert the changes once its submitted in Gerrit
How to revert the changes once its submitted in Gerrit The Revert button is available if the change has been submitted. This Reverts the change via creating…
What is a Change and Patch set in Gerrit?
Here is the short and quick description of Gerrit key teminology. Change Every time you push a commit with a new Change-Id Gerrit allocates a new change….
How to replace Changes after the Gerrit review without changing the commit id?
How to replace Changes after the Gerrit review without changing the commit id? One of the main benefits of code review is the ability to receive and…
How to compile and build Gerrit Plugins?
To build Gerrit Plugins from source, you need: A Linux or macOS system (Windows is not supported at this time) zip, unzip, wget $yum install zip -y…
What is “Install Verified label” in Gerrit?
What is “Install Verified label” in Gerrit? The Verified label was originally invented by the Android Open Source Project to mean ‘compiles, passes basic unit tests’. Some…
What is Enable signed push support in Gerrit?
This options Defaults to false. This ensure When a client pushes with git push –signed, this ensures that the push certificate is valid and signed with a…
Importannce of Canonical web url in Gerrit
The canonical web url must be set. Optional base URL for repositories available over the anonymous git protocol. For example, set this to git://mirror.example.com/base/ to have Gerrit…
Authentication Types in Gerrit explained!
Authentication Types in Gerrit explained! Type of user authentication employed by Gerrit. The supported values are: By default, OpenID OpenID The default setting. Gerrit uses any valid…
How to backup and restore Gerrit server?
How to backup and restore gerrit server? There are 3 coponent which should be backed up in gerrit Repository – According to me best way to backup…
How Gerrit Works?
When Gerrit is configured as the central source repository, all code changes are sent to Pending Changes for others to review and discuss. When enough reviewers have…
Gerrit: frequently asked questions
How is Gerrit different from GitHub pull requests?
Gerrit reviews each commit as its own change. Updates are uploaded as new patch sets of that same change instead of as extra commits on a branch, which keeps history clean and makes reviews commit-focused.
What is a Change-Id in Gerrit?
A Change-Id is a footer line in the commit message, usually added by Gerrit's commit-msg hook. Gerrit uses it to link all patch sets of the same change, so you must keep it when you amend a commit.
How do I push a commit to Gerrit for review?
Push to the special refs/for namespace for your target branch, for example git push origin HEAD:refs/for/main. Gerrit then creates a new change, or adds a new patch set to an existing change if the Change-Id matches.
Does Gerrit need a separate database?
Current Gerrit versions store review metadata in Git using NoteDb, so a separate SQL database is not required. Older releases used ReviewDb, which could run on H2, MySQL or PostgreSQL.
