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