Gerrit Essentials

Gerrit Essentials

  • 1 Day
  • Classroom, Webinar

This Gerrit Essentials training course aims to provide students with an understanding of code within the Gerrit workflow.

About this course

Is this course right for me?

This course is perfect for anyone who is new to Gerrit.

Objectives and outcomes

By the end of this course, you will 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.

Prerequisites

  • -Basic knowledge of Linux interfaces.
  • -Basic understanding of Git as it is not covered in this course.
  • -Internet connection.
  • -Access to a laptop.

Module Sections

  • 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

Demonstration

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

Module Sections

  • Cloning from Gerrit
  • Making local changes
  • Squashing changes
  • Pushing to the Gerrit refspec
  • Viewing changes in the Gerrit interface

Demonstration

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

Module Sections

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

Demonstration

  • Invite peers to participate in a review
  • View existing reviews
  • Understand the status of a review

Module Sections

  • Accessing code reviews
  • Identifying the status of a review
  • Viewing comments
  • Patch sets
  • Viewing changes in different views
  • Comparing patch sets
  • Reviewing preferences
  • Commenting on changes
  • Replying to comments
  • Completing the code review

Demonstration

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

Module Sections

  • Submission requirements
  • Submitting changes
  • Patch set status
  • Dependencies
  • Rebasing changes
  • Change IDs
  • Creating additional patchsets
  • Recap – squashing changes
  • Amending changes
  • Abandoning changes

Demonstration

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

Gerrit is a free, web-based team code collaboration tool. Software developers in a team can review each other's modifications on their source code using a web browser and approve or reject those changes.

Darren Bowles, Clearvision Trainer
Share on facebook
Share
Share on twitter
Share
Share on linkedin
Share

Related courses

    Aaron Rowsell quote mobile

    Looking for more information?

    To learn more about our agile training courses, contact us directly and one of our friendly representatives will be in touch.

    Platinum-Solution-Partner-Enterprise@2x1

    We’ve been an Atlassian Platinum Solution Partner since 2007 and were the first European Partner declared 'Enterprise Ready' by Atlassian back in 2012. Our unrivalled industry experience has positioned us well in helping teams get value out of the tools they rely on.

    Download our training brochure