ITK/Gerrit: Difference between revisions

From KitwarePublic
< ITK
Jump to navigationJump to search
(Added a little more detail to the Gerrit info)
(Little more detail, made the user more generic.)
Line 28: Line 28:
== Add Gerrit as one of your remotes ==
== Add Gerrit as one of your remotes ==


You will want to add Gerrit as a remote, using the username you selected in the Gerrit web interface,
  git remote add gerrit marcus@review.source.kitware.com:ITK


  git remote add gerrit USERNAME@review.source.kitware.com:ITK
Gerrit allows you to select a username, and to upload your public SSH key(s).


== How to push to Gerrit ==
== How to push to Gerrit ==

Revision as of 14:06, 24 August 2010

Code Review System

Overview

Installation

The ITK Gerrit system is available at

In order to register you need to get an OpenID

Workflow

ITKv4-TransitionPlanProposal.png

Workflow Example, from Android

Integration with Git

Add Gerrit as one of your remotes

You will want to add Gerrit as a remote, using the username you selected in the Gerrit web interface,

 git remote add gerrit USERNAME@review.source.kitware.com:ITK

Gerrit allows you to select a username, and to upload your public SSH key(s).

How to push to Gerrit

When on your topic branch, to view the commits that will be pushed as changes,

  git fetch gerrit
  git log gerrit/master..

Then, when you have a topic branch ready to go,

  git push gerrit HEAD:refs/for/master/topic-name

Each of the commits listed by git log will then show up as a commit, optionally labeled with topic-name, in the Gerrit web interface. These commits can then be reviewed and integrated.