checkout and add branch github code example
Example 1: create a branch command
$ git remote add [name_of_your_remote] [name_of_your_new_branch]
Example 2: create a branch command
$ git branch -a
$ git remote add [name_of_your_remote] [name_of_your_new_branch]
$ git branch -a