create a branch from master and checkout code example
Example 1: create new branch git from master
git checkout -b new-branch-name
Example 2: git create and checkout branch
$ git checkout -b
git checkout -b new-branch-name
$ git checkout -b