create new branch from existing branch IN GIT BASH code example
Example 1: create branch from existing branch
$ git checkout -b myFeature dev
Example 2: creating new branch in git
Create a new branch named issue1.
$ git branch testing
$ git checkout -b myFeature dev
Create a new branch named issue1.
$ git branch testing