git create a branch from another code example
Example 1: create new branch git
$ git checkout -b [name_of_your_new_branch]
Example 2: git create new branch from current
git checkout -b topic/newbranch
Example 3: git command to create a branch from another branch
$ git checkout -b myfeature dev