SlideShare a Scribd company logo
Push a Change to Gerrit
In this exercise you will learn how to push a change to the Gerrit code review system.
Preparation
● Make sure you configured the push to Gerrit in your local Git repository
● Create a new local branch starting from the origin/master and create one new commit
in that branch.
● Make sure the Compute Change-Id for Gerrit Code Review button in the commit
dialog is selected when you commit the changes. This will create the “Change-Id: …”
footer in the commit message which is necessary for the Gerrit Code Review.
Pushing to Gerrit
Right click the Git repository node in the Git Repositories view and select Push to Upstream:
After the change is pushed a confirmation dialog is shown:
The confirmation dialog shows the URL of the change in Gerrit. We also see that the numerical
ID of the change is 1 in this case.
Check your Change in Gerrit
● copy the URL of the change from the confirmation dialog to the clipboard and open it in a
web browser
● alternatively open the Gerrit UI in a web browser and find your change in the list of open
changes. Usually, it is the one on the top as the entries are sorted by modification time
Finally, in your web browser you should see your change. It will look like:
Get familiar with the information Gerrit displays on the change page. The change contains one
patch set on its creation. A patch set corresponds to one Git commit.
Click on a file to see the Side-by-Side diff.
Compare the local commit SHA1 and the SHA1 of the Patch Set 1. Are they the same?
Copyright © 2014 by C. Halstrick, E. Kempin, S. Lay, S. Zivkov

More Related Content

PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
PPTX
Presentatie sjabloon skirt generators v2
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...
PPTX
Add eclipse project with git lab
PPT
Google Maps
PPT
7 steps to get free traffic to your blogspot blog
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
Presentatie sjabloon skirt generators v2
Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...
Add eclipse project with git lab
Google Maps
7 steps to get free traffic to your blogspot blog
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...

Viewers also liked (6)

PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 02 - develop a feature
PPTX
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
PPT
Présentation calinka pp
PDF
Versioning large binary files with JGit, EGit and Gerrit
PDF
Les sophismes
PDF
Code Review - DevOn2013
Git Tutorial EclipseCon France 2014 - Git Exercise 02 - develop a feature
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
Présentation calinka pp
Versioning large binary files with JGit, EGit and Gerrit
Les sophismes
Code Review - DevOn2013
Ad

Similar to Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit (20)

PPTX
[Public] gerrit concepts and workflows
PDF
Gerrit Code Review
PDF
Gerrit tutorial
PPTX
The-Git-Tutorial.ppt.pptx
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
PDF
How Git and Gerrit make you more productive
PDF
Learning Gerrit Code Review 1st Edition Milanesio
PDF
Download ebooks file Learning Gerrit Code Review 1st Edition Milanesio all ch...
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
PPT
Effective Git with Eclipse
PDF
Learning Gerrit Code Review 1st Edition Milanesio 2024 scribd download
PPTX
Gerrit class
PDF
GWT Contributor Workshop
PPTX
2015-ghci-presentation-git_gerritJenkins_final
PDF
Code Review with Git and Gerrit - Devoxx 2011 - Tools in Action - 2011-11-14
PPTX
Workshop on Git and GitHub
PPTX
GITHappens, powerpoint about git and github
PPTX
Stable master workflow with Gerrit Code Review
PPTX
Learn Git - For Beginners and Intermediate levels
PDF
Collaborative development with Git | Workshop
[Public] gerrit concepts and workflows
Gerrit Code Review
Gerrit tutorial
The-Git-Tutorial.ppt.pptx
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
How Git and Gerrit make you more productive
Learning Gerrit Code Review 1st Edition Milanesio
Download ebooks file Learning Gerrit Code Review 1st Edition Milanesio all ch...
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
Effective Git with Eclipse
Learning Gerrit Code Review 1st Edition Milanesio 2024 scribd download
Gerrit class
GWT Contributor Workshop
2015-ghci-presentation-git_gerritJenkins_final
Code Review with Git and Gerrit - Devoxx 2011 - Tools in Action - 2011-11-14
Workshop on Git and GitHub
GITHappens, powerpoint about git and github
Stable master workflow with Gerrit Code Review
Learn Git - For Beginners and Intermediate levels
Collaborative development with Git | Workshop
Ad

More from msohn (20)

PPTX
Project Gardener - EclipseCon Europe - 2018-10-23
PDF
News from Git in Eclipse - EclipseCon EU - 2016-10-26
PDF
Git journey from mars to neon EclipseCon North America - 2016-03-08
PDF
News from Git in Eclipse - EclipseCon 2015 Europe
PPTX
Git missiontomars 2015-03-10
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerrit
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 07 - git blame
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 05 - history view
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 01 - installation and conf...
PDF
Code Matters - Eclipse Hackers Git Guide - EclipseCon France 2014
PPTX
Interactive Rebase with EGit
PDF
EGit 3.0 and beyond
PPTX
Cool new stuff in JGit and EGit - Eclipse Democamp Munich 2013-06-12
PDF
Large Scale Development with Git and Gerrit - EclipseCon Europe 2012
PDF
News from Git in Java Land
PDF
The Git Tutorial - EclipseCon 2012
Project Gardener - EclipseCon Europe - 2018-10-23
News from Git in Eclipse - EclipseCon EU - 2016-10-26
Git journey from mars to neon EclipseCon North America - 2016-03-08
News from Git in Eclipse - EclipseCon 2015 Europe
Git missiontomars 2015-03-10
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...
Git Tutorial EclipseCon France 2014 - Git Exercise 07 - git blame
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
Git Tutorial EclipseCon France 2014 - Git Exercise 05 - history view
Git Tutorial EclipseCon France 2014 - Git Exercise 01 - installation and conf...
Code Matters - Eclipse Hackers Git Guide - EclipseCon France 2014
Interactive Rebase with EGit
EGit 3.0 and beyond
Cool new stuff in JGit and EGit - Eclipse Democamp Munich 2013-06-12
Large Scale Development with Git and Gerrit - EclipseCon Europe 2012
News from Git in Java Land
The Git Tutorial - EclipseCon 2012

Recently uploaded (20)

PPTX
Essential Infomation Tech presentation.pptx
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
top salesforce developer skills in 2025.pdf
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Digital Strategies for Manufacturing Companies
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Essential Infomation Tech presentation.pptx
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Reimagine Home Health with the Power of Agentic AI​
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Understanding Forklifts - TECH EHS Solution
Navsoft: AI-Powered Business Solutions & Custom Software Development
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Which alternative to Crystal Reports is best for small or large businesses.pdf
CHAPTER 2 - PM Management and IT Context
Operating system designcfffgfgggggggvggggggggg
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
How to Choose the Right IT Partner for Your Business in Malaysia
top salesforce developer skills in 2025.pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Upgrade and Innovation Strategies for SAP ERP Customers
Digital Strategies for Manufacturing Companies
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf

Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit

  • 1. Push a Change to Gerrit In this exercise you will learn how to push a change to the Gerrit code review system. Preparation ● Make sure you configured the push to Gerrit in your local Git repository ● Create a new local branch starting from the origin/master and create one new commit in that branch. ● Make sure the Compute Change-Id for Gerrit Code Review button in the commit dialog is selected when you commit the changes. This will create the “Change-Id: …” footer in the commit message which is necessary for the Gerrit Code Review. Pushing to Gerrit Right click the Git repository node in the Git Repositories view and select Push to Upstream:
  • 2. After the change is pushed a confirmation dialog is shown: The confirmation dialog shows the URL of the change in Gerrit. We also see that the numerical ID of the change is 1 in this case. Check your Change in Gerrit ● copy the URL of the change from the confirmation dialog to the clipboard and open it in a web browser ● alternatively open the Gerrit UI in a web browser and find your change in the list of open changes. Usually, it is the one on the top as the entries are sorted by modification time Finally, in your web browser you should see your change. It will look like:
  • 3. Get familiar with the information Gerrit displays on the change page. The change contains one patch set on its creation. A patch set corresponds to one Git commit. Click on a file to see the Side-by-Side diff. Compare the local commit SHA1 and the SHA1 of the Patch Set 1. Are they the same? Copyright © 2014 by C. Halstrick, E. Kempin, S. Lay, S. Zivkov