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