Git - Pull from Upstream repository

October 6, 2016

When forking a project from a repository, sometimes you want to get the latest code from the original source. We call that upstream. To get the latest code from upstream use these commands:

$ git fetch upstream

$ git pull upstream master