Working with Git and Gerrit » History » Revision 25

« Previous | Revision 25/46 (diff) | Next »
Sebastian Kurfuerst, 2010-08-20 22:12

Working with Git and Gerrit Code Review

Note: We have not yet switched to Git and Gerrit, but are currently in the process of doing so. Planned date for the switch to git for FLOW3 and TYPO3 Phoenix projects is August 23rd.

For FLOW3 and TYPO3 Phoenix we are using Git and the Gerrit Code Review system to channel commits for review.

Now here is what you need to know to contribute, more details on Git are available in the Pro Git book, the Gerrit documentation and other resources.

Quickstart Guide

For a quick "Getting Started" guide, see the Gerrit and Git Quickstart


Working with Git

Gerrit Code Review

Registering with gerrit

To register with gerrit, visit and log in using your username. Click on 'Settings' -> 'Profile', and check that gerrit correctly knows your name and email address.

In order to be able to upload code, you now need to create a ssh key that gerrit can use to identify you, or tell gerrit about one that already exists.

To create a new ssh key, if you don't already have one, run

ssh-keygen -t dsa -f ~/.ssh/id_dsa

The public key for this is now stored in ~/.ssh/

To tell gerrit about your key, log in, and go to 'Settings'. Select 'SSH Keys', and paste your public key into the "Add SSH Public Key" box, or click on the 'Open Key...' option to load it from the filesystem. Click on 'Add' to add the new public key.
To make things easier, set up ssh so that it knows about the defaults for the gerrit server. Edit ~/.ssh/config, and add a section like:

User <username> 
IdentityFile ~/.ssh/id_dsa 
Port 29418

(where <username> is what you logged in with, i.e. your username)

To verify your ssh key is working correctly, try using an ssh client to connect to gerrit. You should get the following output if it all works:

$ ssh
gerrit: no shell available
Connection to closed.

Working with Gerrit as a Developer

Working with Gerrit as a Reviewer


... to the folks over at OpenAFS that made us stumble over gerrit and whose wiki page we shamelessly used as a base for this page.

... to Sebastian Kurfürst, Peter Niederlag, Christopher Hlubek for their help with git, gerrit and redmine.

... Bastian Waidelich for being the brave Windows test user.

... to the TYPO3 Core Team for being open towards a change in SCM flavor.

Updated by Sebastian Kurfuerst over 10 years ago · 25 revisions