create a new branch from a branch git code example
Example 1: create branch from existing branch
$ git checkout -b myFeature dev
Example 2: git create branch
$ vim index.html
$ git commit -a -m 'Create new footer [issue 53]'
$ git checkout -b myFeature dev
$ vim index.html
$ git commit -a -m 'Create new footer [issue 53]'