git remote tracking branch code example
Example 1: git bash upstream branch change
git branch --set-upstream-to=origin/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 foo
Example 4: git bash upstream branch change
git config --edit