set tracking branch git code example
Example 1: create local branch to track remote
git checkout --track origin/some_remote_branch
Example 2: check upstream branch git
git status -sb
git checkout --track origin/some_remote_branch
git status -sb