open new branch on git code example
Example 1: command to create a new branch in git
$ git checkout -b <branch-name>
Example 2: how to create a branch in git
$ git branch [name of branch]
$ git checkout -b <branch-name>
$ git branch [name of branch]