git switch branch mback to master code example Example: how to make new branch and switch in git git checkout -b myNewBranch