checkout origin remote branch code example
Example 1: git checkout remote branch
git checkout --track origin/<branchname>
Example 2: checkout remote branch
git fetch origin
git checkout –track origin/xyz
git checkout --track origin/<branchname>
git fetch origin
git checkout –track origin/xyz