SCoRe Lab

[Git] Git upstream branches

When you fork a repo from SCoRe repository and clone it on your machine, you have to pull the newest changes from SCoRe repository time to time because your forked repo doesn't get automatically updated with the changes in SCoRe repository.

Task

How we usually do this is by adding the SCoRe repository as a git remote named upstream. upstream is just a fancy name, you can name it any way you like, but we all use it as a convention.

Your task is to add the SCoRe repository as upstream and pull changes from it.

Send up screenshots of the terminal when you do,

  1. git remote -v after adding upstream
  2. Fetch the changes from upstream. ( git fetch upstream )
  3. merge the changes from upstream. ( git merge upstream/master )

Task Deliverables:

Upload screenshots: Terminal outputs of step 1, 2 and 3. Please ensure that the screenshot is of the whole screen. Do not crop. Do not resize.

Refer

https://help.github.com/articles/configuring-a-remote-for-a-fork/ https://help.github.com/articles/syncing-a-fork/

List of SCoRe Lab repos can be found here: https://github.com/scorelab List of LeoppardsLab repos can be found here: https://github.com/leopardslab

Task tags

  • git
  • getting-started

Students who completed this task

Sak, Preetika, Jerry Wu, AviralGangwarTheKid, finchie

Task type

  • code Code
  • chrome_reader_mode Documentation / Training

Level

Beginner
close

2019