git create from existing branch code example
Example 1: create branch from existing branch
$ git checkout -b myFeature dev
Example 2: new branch from existing branch
git checkout -b <branch-name>
$ git checkout -b myFeature dev
git checkout -b <branch-name>