Gerrit test instance

From Wikitech
Jump to navigation Jump to search

A Gerrit test instance is hosted at It runs the same code as the production Gerrit instance. This instance is used for learning how to use Gerrit, testing bots or scripts that make use of the Gerrit Rest API, etc.

Note: No real code review occurs on the test instance. Submit patches on to receive code review.

Setting up an account

To start using the test instance:

Submitting your changes

Cloning repo and URL

If the URL of the remote repository you would like to experiment with is known, it can be cloned by running the following command in your terminal:

git clone <URL>

Here is a full list of repositories: To clone a repository from this list, click on its name, and run the git clone command listed on the next page. Examples:

git clone
git clone
git clone

Commit and push changes

Once you have committed your changes, you can push them to Gerrit using git review. For details on installing and using git-review, check the Gerrit tutorial. If you have git-review installed, you can run:

git review -R

Alternatively, if the origin remote is a Gerrit link (which would be the case if you cloned a repository using the command listed here) you could run the following command to have your changes show up on Gerrit:

git push origin HEAD:refs/for/<branch-name>

See also