how to create a local branch from master code example Example: create new branch git from master git checkout -b new-branch-name