create a branch from a branch git code example
Example 1: create new branch git
$ git checkout -b [name_of_your_new_branch]
Example 2: how to switch branches in git
git checkout [branch name]
Example 3: create a branch command
$ git push [name_of_your_new_remote] [url]
Example 4: create a branch command
$ git branch -a