how to checkout to new branch in git remote code example
Example 1: git checkout remote branch
git checkout --track origin/<branchname>
Example 2: get a remote branch git
$ git checkout --track origin/newsletter
Branch newsletter set up to track remote branch newsletter from origin.
Switched to a new branch 'newsletter'