create branch from current branch git code example
Example 1: create new branch git from master
git checkout -b new-branch-name
Example 2: create a new branch from existing branch in git
git checkout -b subbranch_of_b1 branch1
git checkout -b new-branch-name
git checkout -b subbranch_of_b1 branch1