git setup upstream remote code example
Example 1: setting the upstream for a fork github
git remote add upstream https://thehttpslinkgoeshere.git
Example 2: add remote branch git
git remote add github git://github.com/jdoe/coolapp.git
git fetch github
Example 3: git setup upstream
$ git push -u <remote> <branch>
Example 4: git remote add upstream
git remote add upstream GIT_DIR