get upstream branch git code example
Example 1: git check upstream
git remote show origin
Example 2: github set branch upstream
git push --set-upstream origin <remote-branch>
Example 3: get a remote branch git
$ git checkout --track origin/newsletter
Branch newsletter set up to track remote branch newsletter from origin.
Switched to a new branch 'newsletter'
Example 4: check upstream branch git
git status -sb