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

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

PDF
Collaborative development with git
Joseluis Laso
 
PDF
Git basic introduction & tutorial for begginer
AnDiLestiAnto2
 
DOCX
In your github fork
nenadfemic
 
PPTX
Git-ing out of your git messes
Katie Sylor-Miller
 
PDF
Git Series. Episode 2. Merge, Upstream Commands and Tags
Mikhail Melnik
 
PPT
Embracing Distributed Version Control
Nowell Strite
 
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 02 - develop a feature
msohn
 
PDF
Embedded Systems: Lecture 12: Introduction to Git & GitHub (Part 3)
Ahmed El-Arabawy
 
PDF
Gitflow Workflow
Hean Hong Leong
 
PDF
Git 101: Force-sensitive to Jedi padawan
James Ford
 
PDF
Drupal Version Control & File System Basics
Julia Kulla-Mader
 
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
msohn
 
PPTX
Git tutorial
Ananth Kumar
 
PDF
Git for the absolute beginners
Gabriele Baldassarre
 
PDF
Git tutorial
mobaires
 
PDF
Git
Mayank Patel
 
PDF
Switching to Git
Stephen Yeargin
 
PPTX
Git Basics for Software Version Management
ishanmittal49
 
PPTX
Git
Shinu Suresh
 
PPTX
Mastering GIT
Hasnaeen Rahman
 
Collaborative development with git
Joseluis Laso
 
Git basic introduction & tutorial for begginer
AnDiLestiAnto2
 
In your github fork
nenadfemic
 
Git-ing out of your git messes
Katie Sylor-Miller
 
Git Series. Episode 2. Merge, Upstream Commands and Tags
Mikhail Melnik
 
Embracing Distributed Version Control
Nowell Strite
 
Git Tutorial EclipseCon France 2014 - Git Exercise 02 - develop a feature
msohn
 
Embedded Systems: Lecture 12: Introduction to Git & GitHub (Part 3)
Ahmed El-Arabawy
 
Gitflow Workflow
Hean Hong Leong
 
Git 101: Force-sensitive to Jedi padawan
James Ford
 
Drupal Version Control & File System Basics
Julia Kulla-Mader
 
Git Tutorial EclipseCon France 2014 - Git Exercise 03 - work on branches in p...
msohn
 
Git tutorial
Ananth Kumar
 
Git for the absolute beginners
Gabriele Baldassarre
 
Git tutorial
mobaires
 
Switching to Git
Stephen Yeargin
 
Git Basics for Software Version Management
ishanmittal49
 
Mastering GIT
Hasnaeen Rahman
 

More from msohn (20)

PPTX
Project Gardener - EclipseCon Europe - 2018-10-23
msohn
 
PDF
News from Git in Eclipse - EclipseCon EU - 2016-10-26
msohn
 
PDF
Git journey from mars to neon EclipseCon North America - 2016-03-08
msohn
 
PDF
Versioning large binary files with JGit, EGit and Gerrit
msohn
 
PDF
News from Git in Eclipse - EclipseCon 2015 Europe
msohn
 
PPTX
Git missiontomars 2015-03-10
msohn
 
PPTX
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerrit
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 07 - git blame
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 05 - history view
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...
msohn
 
PDF
Git Tutorial EclipseCon France 2014 - Git Exercise 01 - installation and conf...
msohn
 
Project Gardener - EclipseCon Europe - 2018-10-23
msohn
 
News from Git in Eclipse - EclipseCon EU - 2016-10-26
msohn
 
Git journey from mars to neon EclipseCon North America - 2016-03-08
msohn
 
Versioning large binary files with JGit, EGit and Gerrit
msohn
 
News from Git in Eclipse - EclipseCon 2015 Europe
msohn
 
Git missiontomars 2015-03-10
msohn
 
News from EGit - Talk EclipseCon Europe 2014 - Ludwigsburg
msohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
msohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 7 - new changescreen
msohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 6 - submit a change
msohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 5 - improve a change
msohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 4 - review change
msohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 3 - push change to gerrit
msohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 1 - configure for gerrit
msohn
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 8 - view gerrit review ...
msohn
 
Git Tutorial EclipseCon France 2014 - Git Exercise 07 - git blame
msohn
 
Git Tutorial EclipseCon France 2014 - Git Exercise 06 - interactive rebase
msohn
 
Git Tutorial EclipseCon France 2014 - Git Exercise 05 - history view
msohn
 
Git Tutorial EclipseCon France 2014 - Git Exercise 04 - merging rebasing and ...
msohn
 
Git Tutorial EclipseCon France 2014 - Git Exercise 01 - installation and conf...
msohn
 
Ad

Recently uploaded (20)

PDF
Laboratory Workflows Digitalized and live in 90 days with Scifeon´s SAPPA P...
info969686
 
PPTX
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PDF
GridView,Recycler view, API, SQLITE& NetworkRequest.pdf
Nabin Dhakal
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PDF
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PPTX
Cubase Pro Crack 2025 – Free Download Full Version with Activation Key
HyperPc soft
 
PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PPTX
WYSIWYG Web Builder Crack 2025 – Free Download Full Version with License Key
HyperPc soft
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PDF
Dealing with JSON in the relational world
Andres Almiray
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
PDF
2025年 Linux 核心專題: 探討 sched_ext 及機器學習.pdf
Eric Chou
 
PDF
interacting-with-ai-2023---module-2---session-3---handout.pdf
cniclsh1
 
PPTX
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PPTX
Perfecting XM Cloud for Multisite Setup.pptx
Ahmed Okour
 
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
Laboratory Workflows Digitalized and live in 90 days with Scifeon´s SAPPA P...
info969686
 
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
GridView,Recycler view, API, SQLITE& NetworkRequest.pdf
Nabin Dhakal
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
Cubase Pro Crack 2025 – Free Download Full Version with Activation Key
HyperPc soft
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
WYSIWYG Web Builder Crack 2025 – Free Download Full Version with License Key
HyperPc soft
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Dealing with JSON in the relational world
Andres Almiray
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
2025年 Linux 核心專題: 探討 sched_ext 及機器學習.pdf
Eric Chou
 
interacting-with-ai-2023---module-2---session-3---handout.pdf
cniclsh1
 
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
Perfecting XM Cloud for Multisite Setup.pptx
Ahmed Okour
 
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
Ad

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