use branch with git code example
Example 1: git create branch
$ git checkout -b [name_of_your_new_branch]
Example 2: git branch command
git branch <branchname>
(or)
git checkout -b <branchname>
$ git checkout -b [name_of_your_new_branch]
git branch <branchname>
(or)
git checkout -b <branchname>