create new branch from master git command code example Example: create new branch git from master git checkout -b new-branch-name