create new branch and commit code example
Example 1: create and go to branch
git checkout -b <branch_name>
Example 2: creating new branch in git
Create a new branch named issue1.
$ git branch testing
git checkout -b <branch_name>
Create a new branch named issue1.
$ git branch testing