Open source, web-based code and document review tool with a diff viewer, interdiffs, and support for many version control systems.
GerritCodeReview/gerrit
Gerrit is a Git-based code review tool with side-by-side diffs, inline comments, and controlled change submission.
Open-source alternative to:GitHub Pull Requests
- Stars
- 1,238
- Forks
- 279
- Open issues
- 3
- Last commit
- 10 hours ago
What is it?
Gerrit is a code review and project management tool for Git-based projects. It displays changes side by side and lets any reviewer add inline comments to a change.
Instead of requiring a maintainer to merge every approved change by hand, Gerrit lets any authorized user submit changes to the main Git repository. This keeps review and merge control inside the tool while reducing the maintainer's manual work.
The project is written primarily in Java and built with Bazel. Binary packages are provided for Debian, Ubuntu, CentOS, RedHat and Fedora, and Docker images are published for CentOS 8 and Ubuntu 20.04.
Key features
- 01Side-by-side display of code changes with inline comments from any reviewer.
- 02Authorized users can submit changes to the Git repository without manual merges by maintainers.
- 03Installable from Deb and RPM packages or run via prebuilt Docker images.
- 04Built from source with Bazel.
Use cases
- Running a code review workflow for a team that uses Git.
- Letting contributors submit changes to a shared repository under maintainer-controlled access.
- Deploying a self-hosted Gerrit server with Docker on CentOS or Ubuntu.
Quick start
- 1
Install Bazel from the linked install guide
- 2
Clone the repository with submodules
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit - 3
Build the release from the project directory
cd gerrit && bazel build release
Things to know
- Building from source requires installing Bazel and fetching git submodules.
- The GitHub repository is a mirror, and pull requests there are not accepted.
- Creating issues requires membership in the repo-discuss Google Group because of spam.
In collections
Topics
FAQ
- What is gerrit?
- Gerrit is a Git-based code review tool with side-by-side diffs, inline comments, and controlled change submission. Gerrit is a code review and project management tool for Git-based projects. It displays changes side by side and lets any reviewer add inline comments to a change.
- Is gerrit free to use? What license does it have?
- gerrit is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is gerrit still maintained?
- Actively maintained. The last commit to gerrit was on Nov 6, 2026.
- What can I use gerrit for?
- Running a code review workflow for a team that uses Git. Letting contributors submit changes to a shared repository under maintainer-controlled access. Deploying a self-hosted Gerrit server with Docker on CentOS or Ubuntu.
- How do I install gerrit?
- Install Bazel from the linked install guide Clone the repository with submodules: git clone --recurse-submodules https://gerrit.googlesource.com/gerrit Build the release from the project directory: cd gerrit && bazel build release
- Where can I get gerrit?
- The source code and installation instructions are on GitHub: https://github.com/GerritCodeReview/gerrit
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A browser-based inbox for GitHub pull requests that organizes PRs into sections using search queries.
A terminal code review tool with vim keybindings that exports comments to GitHub, GitLab, Gitea, Bitbucket, Azure DevOps, Gerrit, or the clipboard.
A CLI tool that opens a local GitHub-style web viewer for reviewing git commit diffs, with comments you can copy as AI prompts.
A Go CLI that runs any linter or code analysis tool and posts its findings as review comments on GitHub, GitLab or Bitbucket, limited to changed lines.
A GitHub code review bot that uses ChatGPT-style LLMs to comment on pull request diffs, run as a GitHub App, Action, or self-hosted Probot app.