get a remote branch to local code example
Example 1: git checkout remote branch
git checkout --track origin/<branchname>
Example 2: git get remote branch
git fetch
git checkout test
git checkout --track origin/<branchname>
git fetch
git checkout test