Back to services

Gerrit

Code review and project management tool for Git-based projects.

View alternatives to Gerrit
Suggest edit
Open source
Self-hostable
Apache-2.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Gerrit Code Review is an open-source, web-based code review system for Git-based development. Teams can run patch-set-based reviews on top of their Git repositories, with fine-grained permission management and integration with CI/CD pipelines. The project is licensed under Apache 2.0, so there are no licensing fees and no vendor lock-in.

Key Features

  • Patch-set-based review workflow: Gerrit's review model is similar to the mailing-list workflow used by Git itself and the Linux kernel. Patches are reviewed and revised repeatedly before being merged into the main repository.
  • Team collaboration: Supports inline comments, patch-set management and configurable approval workflows, suitable for anything from small teams to thousands of developers.
  • Fine-grained permission model: Offers enterprise-grade access control that can enforce strict security policies and compliance requirements, making it a good fit for regulated industries and large organizations with complex team structures.
  • Enterprise-grade scalability: Proven in environments with thousands of developers working at the same time. Global replication and active-active clusters support very large repositories and multi-node deployments, and upgrades can be done with zero downtime.
  • REST API and integrations: Provides a complete REST API, with support for webhooks, command-line tools and IDE integrations.
  • Plugin ecosystem: More than 100 community plugins are available, and you can also develop your own.

CI/CD Integration

  • Jenkins: Can trigger builds automatically and report build status back.
  • GitHub Actions: Connected through the GitHub plugin.
  • Webhooks: Connect to other CI/CD systems through the webhooks plugin.
  • Zuul: The Zuul gating system runs tests before merging to keep faulty code out of the repository.

Notable Users

Large open-source projects such as Android, Chromium, the OpenInfra Foundation (OpenDev), JGit and Qt use Gerrit for code review.

Installation and Deployment

Standalone deployment (requires a Java environment):

wget -O gerrit.war https://gerrit-releases.storage.googleapis.com/gerrit-3.14.4.war
java -jar gerrit.war init -d /path/to/gerrit/site_dir --dev --batch --install-all-plugins
cd /path/to/gerrit/site_dir && bin/gerrit.sh start

Docker deployment:

docker run -d -p 8080:8080 -p 29418:29418 --name gerrit gerritcodereview/gerrit:latest

8080 is the web port and 29418 is the SSH port.

Hosted service: GerritHub.io provides ready-to-use Gerrit instances, and private repositories can be used for free. It integrates with GitHub repositories and automatically syncs data back to GitHub.

Target Users

  • Mid-sized and large development teams that need a strict code review process
  • Large open-source projects
  • Enterprises with demanding permission and compliance requirements
  • Developers accustomed to a Linux-kernel-style patch review workflow

Things to Note

  • Each commit is reviewed and iterated on individually. This differs from the pull-request-centric approach of GitHub/GitLab and takes some getting used to at first.
  • Official user and administrator documentation, a mailing list and a Discord community are available, and enterprise-grade commercial support is also an option.