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