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