[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,
- git remote -v after adding upstream
- Fetch the changes from upstream. ( git fetch upstream )
- 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