branch git commands code example
Example 1: git branch command
git branch <branchname>
(or)
git checkout -b <branchname>
Example 2: how to create a branch in git
$ git branch [name of branch]
git branch <branchname>
(or)
git checkout -b <branchname>
$ git branch [name of branch]