how to add a new branch to git code example
Example 1: create branch in git
# Create New Branch And Switch To It
$ git checkout -b myBranchName
Example 2: command to create a new branch in git
$ git checkout -b <branch-name>
# Create New Branch And Switch To It
$ git checkout -b myBranchName
$ git checkout -b <branch-name>