checkout of git into a new branch code example
Example 1: git branch and checkout at the same time
$ 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