how to add a branch to a a git repo cli code example
Example 1: how to add a branch to a a git repo cli
# Create new local branch
git checkout -b <new-branch>
Example 2: git branch command
git branch <branchname>
(or)
git checkout -b <branchname>