create new branch in git from existing branch code example
Example 1: create branch from existing branch
$ git checkout -b myFeature dev
Example 2: create branch from another branch
$ git checkout -b myFeature dev
Example 3: create a new branch from existing branch in git
git checkout -b subbranch_of_b1 branch1
Example 4: git command to create a branch from another branch
$ git checkout -b myfeature dev