checkout remote branch or a remote code example Example: git checkout remote branch git checkout --track origin/<branchname>