Gerrit code review

Course length: 1 days (8 hours)

Description: Gerrit is a Web-based code-review application used by such open-source projects as Android and WikiMedia, as well as by a growing number of corporations. Built on top of the Git version-control system, Gerrit allows teams to submit, review, comment on, and accept (or reject) patches. This course introduces Gerrit to developers who are familiar with Git, and whose teams will be using Gerrit to review contributed code.

Audience: People who have experience using Git, who need to learn how to use Gerrit. However, the first part of the course  includes an intensive review of branching and merging in Git, knowledge of which is crucial to using Gerrit effectively. This course is often combined with my two-day introduction to Git, for teams that will be using both Git and Gerrit.
Course syllabus

  • What is Gerrit?
  • How does working with Gerrit differ from working with Git?
  • Git remote branches vs Gerrit remote branches
  • Commit IDs and Change IDs
  • ssh keys
  • Logging in
  • Web interface
  • Menus and submenus
  • Administrator menus and submenus
  • Git-based interface
  • Git hooks
  • Git remotes
  • Gerrit roles
  • Contributing to an existing Gerrit project
  • Submitting commits
  • Non-compliant commits
  • Diffs on Gerrit
  • Gerrit comments
  • What does Gerrit consider “accepted” or “rejected”?
  • Accepting and rejecting changes in Gerrit
  • Local and remote Git branches, and their impact on Gerrit
  • Rebasing, amending, and Gerrit
  • Squashing commits — when and how
  • Commit ordering and Gerrit
  • Best practices with Gerrit