git setup new branchg to track code example
Example 1: git local branch track remote
git branch --set-upstream foo upstream/foo
Example 2: git link local branch to remote branch
git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'