git pull remote branch and add tracking code example
Example 1: git link local branch to remote branch
git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
Example 2: git get remote branch
git fetch
git checkout test
git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
git fetch
git checkout test