commit to a branch command line code example
Example 1: git create branch
$ git checkout -b [name_of_your_new_branch]
Example 2: git create branch
$ vim index.html
$ git commit -a -m 'Create new footer [issue 53]'
$ git checkout -b [name_of_your_new_branch]
$ vim index.html
$ git commit -a -m 'Create new footer [issue 53]'