Gerrit Tutorial
Setting up Git
Set Up SSH Keys in Gerrit
Prepare to work with Gerrit
How to Submit a Patch
How Code is reviewed in Gerrit
Gerrit Useful Resources
Selected Reading
Setting up Git
Set Up SSH Keys in Gerrit
- Download Extension Using Git
- Add SSH Key to use with Git
- Add SSH Key to your Gerrit Account
- Add Your SSH Key
- Generate New SSH Key
Prepare to work with Gerrit
How to Submit a Patch
- Editing via the Web-Interface
- View the Change / Next Steps
- Push your change set to Gerrit
- Prepare Push change set to Gerrit
- Make & Commit Your Change
- Gerrit - Create Branch
- Gerrit - Update Master
How Code is reviewed in Gerrit
Gerrit Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Gerrit - Create Branch
Gerrit - Create a Branch
You can create a branch on the local machine using the following command.
$ git checkout -b name_of_branch origin/master
The above command creates a new branch as shown in the following screenshot.

Here, we have used branch123 as the new local branch. You can show the new branch from the master using the following command.
$ git branch
The above command produces the result as shown in the following screenshot.

Git checkout navigates between the branch, updates the files in the working directory, and informs Git to record the commits on that branch.
Advertisements