how create new branch from existing 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
$ git checkout -b myFeature dev
git checkout -b subbranch_of_b1 branch1