SlideShare a Scribd company logo
Fetch the latest state from upstream
In this exercise you will learn how to fetch the latest state from upstream. Fetching the latest
state will update the remote tracking branch(es) in your local repository. It will not try to change
any of your local branches or your working tree.
You may skip this step in the first part of the tutorial as no new changes will have been made
in the remote repository. You should nevertheless make it your habit to always create a new
feature branch on the latest state you have fetched from the remote repository. Later, in the
Gerrit exercises you will be referred to this exercise again when you have conflicts.
Before starting to develop a feature or doing a bug-fix you should fetch the latest state from the
central repository. This will update the remote tracking branch origin/master which will be
the base for your local changes.
● Go to the Git Repositories View
● Select your repository and click Fetch from Upstream
● Alternatively select the project and click the Git toolbar button Fetch changes from
upstream
● the “Fetch Results” dialog displays the result of the fetch action
● if new changes have been fetched it looks like this:
● if you already have the latest state available on the server it shows the message
“everything up to date” and the list is empty
● Now, after the remote tracking branch origin/master is up-to-date it is a good basis for
creating a new local feature branch
● In the History View the (updated) origin/master branch shows the status of the master
branch in the remote repository.
Copyright © 2014 by C. Halstrick, E. Kempin, S. Lay, S. Zivkov

More Related Content

PDF
Things I Heart
PPTX
PDF
Marge vs Rebase
PDF
TuleapCon 2018. Tuleap Development circa end of march 2018
PDF
Meetup dpjs react_api
PPTX
Returning Data
PPTX
Example Python Script for Nexus 3K
PDF
Wix Code - Todo App - Yale Hachathon
Things I Heart
Marge vs Rebase
TuleapCon 2018. Tuleap Development circa end of march 2018
Meetup dpjs react_api
Returning Data
Example Python Script for Nexus 3K
Wix Code - Todo App - Yale Hachathon

Similar to Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state (20)

PPTX
Learn Git - For Beginners and Intermediate levels
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
PDF
Embedded Systems: Lecture 12: Introduction to Git & GitHub (Part 3)
PDF
Git basics a starter on git and its ecosystem
PDF
Git of every day
PDF
Git tutorial
PDF
The benefits of using Git
PPTX
PPTX
Git Repository for Developers working in Various Locations
PDF
Advanced Git - Functionality and Features
PPTX
01 - Git vs SVN
PDF
Git: A Getting Started Presentation
PDF
GIT_training_SoftServeBulgaria2016
PDF
PDF
Introduction to Git (part 1)
PDF
Git Introduction with illustrations
PDF
Git - a powerful version control tool
PPTX
Mastering GIT
PDF
Git Series. Episode 2. Merge, Upstream Commands and Tags
PPTX
git Technologies
Learn Git - For Beginners and Intermediate levels
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
Embedded Systems: Lecture 12: Introduction to Git & GitHub (Part 3)
Git basics a starter on git and its ecosystem
Git of every day
Git tutorial
The benefits of using Git
Git Repository for Developers working in Various Locations
Advanced Git - Functionality and Features
01 - Git vs SVN
Git: A Getting Started Presentation
GIT_training_SoftServeBulgaria2016
Introduction to Git (part 1)
Git Introduction with illustrations
Git - a powerful version control tool
Mastering GIT
Git Series. Episode 2. Merge, Upstream Commands and Tags
git Technologies
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
Versioning large binary files with JGit, EGit and Gerrit
PDF
News from Git in Eclipse - EclipseCon 2015 Europe
PPTX
Git missiontomars 2015-03-10
PPTX
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit
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 04 - merging rebasing and ...
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 01 - installation and conf...
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
Versioning large binary files with JGit, EGit and Gerrit
News from Git in Eclipse - EclipseCon 2015 Europe
Git missiontomars 2015-03-10
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit
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 04 - merging rebasing and ...
Git Tutorial EclipseCon France 2014 - Git Exercise 01 - installation and conf...
Ad

Recently uploaded (20)

PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
L1 - Introduction to python Backend.pptx
PPTX
history of c programming in notes for students .pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Essential Infomation Tech presentation.pptx
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
AI in Product Development-omnex systems
PDF
Digital Strategies for Manufacturing Companies
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Introduction to Artificial Intelligence
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
ai tools demonstartion for schools and inter college
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
L1 - Introduction to python Backend.pptx
history of c programming in notes for students .pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Softaken Excel to vCard Converter Software.pdf
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
How to Migrate SBCGlobal Email to Yahoo Easily
Essential Infomation Tech presentation.pptx
Design an Analysis of Algorithms II-SECS-1021-03
AI in Product Development-omnex systems
Digital Strategies for Manufacturing Companies
PTS Company Brochure 2025 (1).pdf.......
Introduction to Artificial Intelligence
How Creative Agencies Leverage Project Management Software.pdf
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
ai tools demonstartion for schools and inter college
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
2025 Textile ERP Trends: SAP, Odoo & Oracle

Git Tutorial EclipseCon France 2014 - Gerrit Exercise 2 - fetch the latest state

  • 1. Fetch the latest state from upstream In this exercise you will learn how to fetch the latest state from upstream. Fetching the latest state will update the remote tracking branch(es) in your local repository. It will not try to change any of your local branches or your working tree. You may skip this step in the first part of the tutorial as no new changes will have been made in the remote repository. You should nevertheless make it your habit to always create a new feature branch on the latest state you have fetched from the remote repository. Later, in the Gerrit exercises you will be referred to this exercise again when you have conflicts. Before starting to develop a feature or doing a bug-fix you should fetch the latest state from the central repository. This will update the remote tracking branch origin/master which will be the base for your local changes. ● Go to the Git Repositories View ● Select your repository and click Fetch from Upstream ● Alternatively select the project and click the Git toolbar button Fetch changes from upstream ● the “Fetch Results” dialog displays the result of the fetch action
  • 2. ● if new changes have been fetched it looks like this: ● if you already have the latest state available on the server it shows the message “everything up to date” and the list is empty ● Now, after the remote tracking branch origin/master is up-to-date it is a good basis for creating a new local feature branch ● In the History View the (updated) origin/master branch shows the status of the master branch in the remote repository.
  • 3. Copyright © 2014 by C. Halstrick, E. Kempin, S. Lay, S. Zivkov