checkout the branch called code example
Example 1: git checkout remote branch
git checkout --track origin/<branchname>
Example 2: "git checkout -b" example
$ git checkout -b new-branch --track origin/develop
git checkout --track origin/<branchname>
$ git checkout -b new-branch --track origin/develop