how to checkout into a existing remote branch in a repository 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