Skip to Content
Technical Articles
Author's profile photo Showkath Ali Naseem

How to setup Gerrit locally on Windows

There is a nice blog written by @Tobias Hofmann  How to Install Gerrit in Tomcat under Windows

As you might all know Gerrit is a open-source code review tool and project management tool for Git based projects.

For open-source code and code shared with collaborators outside, like Go, Chromium, Android Googlers use the Gerrit code review tool.
For the internal code, on the other hand, Googlers use an internal code review tool called Critique
Code review” is the top reason why over developers like Gerrit
Where is Github Enterprise is commercial ,needs to get licence per user .

Ofcourse Github has pretty good view & nice feature. You can browse difference between GitHub, Gerrit , ButBucket ,…. over internet

In this blog post I would like to focus on “How to setup & run Gerrit  locally on Windows”

Pre-Requisites : Java 11 or later SDK is required. Otherwise, java 8 can still be used for now as described below.

https://gerrit-review.googlesource.com/Documentation/dev-readme.html

 

Step 1) Download war file from https://www.gerritcodereview.com/

 

 

Step 2) Run below command to run Gerrit locally

java -jar gerrit-3.4.0.war init -d gerrit –dev –batch

 

Step3)

Navigate to Bin directory & run gerrit.sh

Or Go to installed location C:\Users\xxxx\gerrit>  (step2) from window command prompt then you can run below command

java -jar bin\gerrit.war daemon

Once application is up you can access Gerrit by opening in browser

    http://localhost:8080/

 

You can login as admin by just clicking admin hyper link or

you can also create new user by clicking on “New account”

You can create new Repositories

 

 

 

References:

Documentation: https://www.gerritcodereview.com/

Opensource project: https://gerrit.googlesource.com/?format=HTML

All Opensource  android projects stored here: https://android.googlesource.com/?format=HTML

 

 

Assigned tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.