creating a local branch in git code example
Example 1: create new branch git
$ git checkout -b [name_of_your_new_branch]
Example 2: creating a branch in git
git checkout -b <branch_name>
Example 3: how to create a branch in git
$ git branch [name of branch]