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