git set remote origin to branch code example
Example 1: add remote branch git
git remote add github git://github.com/jdoe/coolapp.git
git fetch github
Example 2: check upstream branch git
git status -sb
git remote add github git://github.com/jdoe/coolapp.git
git fetch github
git status -sb