create new branch from existing branch in github code example
Example 1: create a branch command
$ git checkout -b [name_of_your_new_branch]
Example 2: create a branch command
$ git remote add [name_of_your_remote] [name_of_your_new_branch]
$ git checkout -b [name_of_your_new_branch]
$ git remote add [name_of_your_remote] [name_of_your_new_branch]