git create repo branch 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 create new repo from branch
$ git push https://github.com/accountname/new_repo.git +old_branch:master