how to add a branch to a a git repo cli

C++
# Create new local branch
git checkout -b <new-branch>git branch <branchname> 
(or)
git checkout -b <branchname>
Source

Also in C++: