git checkout remote re code example Example: checkout remote branch git fetch origin git checkout –track origin/xyz