switch branch different remote git code example Example: git get remote branch git fetch git checkout test