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