create an branch from master in git code example
Example 1: create new branch git from master
git checkout -b new-branch-name
Example 2: how to create a branch in git
$ git branch [name of branch]
git checkout -b new-branch-name
$ git branch [name of branch]