create a new branch from existing branch code example
Example 1: make a new branch git
git checkout -b branch-name
Example 2: git new branch
$ git checkout -b [your_branch_name]
$ git branch [your_branch_name]
$ git checkout [your_branch_name]
Example 3: create branch from existing branch
$ git checkout -b myFeature dev
Example 4: create a new branch from existing branch in git
git checkout -b subbranch_of_b1 branch1
Example 5: git create branch
$ vim index.html
$ git commit -a -m 'Create new footer [issue 53]'