create a new branch git from master code example
Example 1: create branch in git
# Create New Branch And Switch To It
$ git checkout -b myBranchName
Example 2: create a new branch based on another branch
//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myfeature dev