make a new branch on an existing branch git code example
Example 1: create a new branch from existing branch in git
git checkout -b subbranch_of_b1 branch1
Example 2: create branch from existing branch
$ git checkout -b myFeature dev
git checkout -b subbranch_of_b1 branch1
$ git checkout -b myFeature dev