how to commit to branch git code example
Example 1: git create branch
$ git checkout -b [name_of_your_new_branch]
Example 2: create new branch git from master
git checkout -b new-branch-name
$ git checkout -b [name_of_your_new_branch]
git checkout -b new-branch-name