Gerrit Essentials

Clearvision's Gerrit Essentials training course provides an understanding of code within the Gerrit workflow.


This course is perfect for users new to Gerrit. However, you should already be familiar with Git as it is not taught in the course.


  • Basic knowledge of Linux interfaces
  • Basic understanding of Git
  • Internet connection
  • Access to laptop

Objectives & Outcomes

By the end of this course, you will be able to be able to use Gerrit, together with Git, for program code version control and code reviews. You will become familiar with the specific processes required to save code changes, set up reviews and review code within the Gerrit workflow.

Course outline:

Module 1: Introduction

  • Introduction to Gerrit
  • The Gerrit Workflow
  • Roles in Gerrit
  • Introduction to code reviews
  • Code review scores
  • Default user permissions
  • The Gerrit refspec
  • Code review requirements


  • Explore Gerrit
  • Verify the training enviromement
  • Clone a Gerrit repository
  • Retrieve the commit-msg hook


Module 2: Creating a change

  • Cloning from Gerrit
  • Making Local changes
  • Squashing changes
  • Pushing to the Gerrit Refspec
  • Viewing your changes in the Gerrit interface


  • Create a local branch
  • Make some changes in Git
  • Squash Changes
  • Push to Gerrit


Module 3: Setting up a code review

  • Verification
  • Inviting reviewers to participate
  • Monitoring review progress
  • Notifications


  • Invite peers to participate in review
  • View existing reviews
  • understand a review’s status


Module 4: Reviewing changes:

  • Accessing code reviews
  • Identifying a review’s status
  • Viewing comments
  • Patch sets
  • Viewing changes in Diff views
  • comparing patch sets
  • Review preferences
  • Commenting on Changes
  • Replying to Comments
  • Completing the code review


  • Searching for reviews
  • Review changes submitted by another user
  • Explore Diff views
  • Provide Review comments
  • Passing a review


Module 5: Submitting a change

  • Submission Requirements
  • Submitting changes
  • Patch set status
  • Dependencies
  • Rebasing Changes
  • Change ID’s
  • Creating additional patchsets
  • Recap – squashing changes
  • Amending Changes
  • Abandoning changes


  • Rebasing in Gerrit
  • Failing a review
  • Re-submitting failed reviews
  • Resolving conflicts in a Gerrit rebase
  • Passing and submitting a review



Andre relevante kurs

1 dager
Classroom Virtual
1 dager
Classroom Virtual
1 dager
Classroom Virtual