git set up upstream to an existing remote code example
Example 1: github set branch upstream
git push --set-upstream origin <remote-branch>
Example 2: add remote branch git
git remote add github git://github.com/jdoe/coolapp.git
git fetch github