how to switch to remote branch in local code example Example: git get remote branch git fetch git checkout test