checking out to new branch using origin/branch name code example Example: git get remote branch git fetch git checkout test