Sustainable Computing Research Lab (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.

Task

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 )

Task Deliverables: Upload a screenshots: Terminal outputs of step 1, 2 and 3.

Refer

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

Task tags

  • git
  • getting-started

Students who completed this task

Anurag Parida, Nithika, notNav, 1337_siddh, ArtemTin, Ben.mue, ycwei982, sikfeng, Fizaan, kunalbhatia, Akshit Goyal, Aditya02, IsMan, Aakarsh, echooff, karthikeya, Pranay Chaplot, Manish Varrier, rohanssrao, dxa_kly, ariban900, imanoob, ShubhamSharama, sudhanshu, Mugdha, Sanyam, Andre Christoga P., Kaushl, Anonimbus, Sachin Kumar, Dilshan Ratnayake, Himanshu Gangwani, Gaurav Pandey, TheYkk, Palash, Jaykin, Randummy, Novasis, FelenAmvrosiy, Rishikesh Joshi, matmen, Asako, Raghav Awasthi, Birkhoff Lee, McMehta, tahsinamio, Aryaman Singh Verma, Deep Chandra, EdgeKaos, coder101, simcard0000, Naman Modani, geekykid, Dayitva, rv1402, Avtara, Ignacio Illanes, Geethmaka Dissanayake, Piyush, Hồ Đức Hiếu, Tharun, Łukasz Myśliwiec, jmularski, Adhyan Dhull, hansraj09, RohanCode, KushagraVats, Anmol Singh, Krzysztof Smaga, Mihaela, SphericalPotatoInVacuum, Ziyaad Banderker, satwik834, Shravani, Rajeev, Ashish Agrahari, farihaaskar, SINEd, Kalyan, Percy04

Task type

  • code Code
  • chrome_reader_mode Documentation / Training
close

2018