new branch git created code example
Example 1: how to create branch in github using git bash
$ git checkout -b [name_of_your_new_branch]
Example 2: how to create a branch in git
$ git branch [name of branch]
$ git checkout -b [name_of_your_new_branch]
$ git branch [name of branch]