Sustainable Computing Research Group (SCoRe)

[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.

How we usually do this is by adding the SCoRe repository as 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 )

Refer

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

Task tags

  • git

Students who completed this task

tegenton, Matthew Warwick, Leo Gao, jayti nigam, Łukasz Myśliwiec, Afras Ashraf, haru, Gautham Raghupathi, Gaurav, Kinjal Agrawal, Shehar Yaar Tausif, Alexius Adhitya K., Isabel Alvarado, Shivansh Sharma, Padam Chopra, Abhinav Pola, Farhan Mufti Hilmy, Omkar Jadhav, Nitish Dashora, Saket Kaki, Christos Falas, Xun Xu, Moses Paul, Piotr Michalski, riiptide, Vikrant Reddy, Ade Isman Aji, labcode, Shlok J, Szymon Leja, stephancill, Kimberley Worrall, Madhawa Dissanayake, Benjamin Mueggenburg, Raghu Ranganathan, IUserPPAKD, Angeli M, Seth Vogler, Anubhav Verma, Revanth, Kaden Gordon, Adhyan Dhull, Kalyan C, Mehant Kammakomati, Dia Ganesh Kumar, Kartik Singhal, Harshni Priya, Rohan Shiva

Task type

  • code Code
close

2017