how to make new branch the master branch in git code example Example: create new branch git from master git checkout -b new-branch-name