how to get branch from remote to local code example
Example 1: checkout remote branch
git fetch origin
git checkout –track origin/xyz
Example 2: git get remote branch
git fetch
git checkout test
git fetch origin
git checkout –track origin/xyz
git fetch
git checkout test