git add on branch code example
Example 1: create branch in git
# Create New Branch And Switch To It
$ git checkout -b myBranchName
Example 2: how to create a branch in git
$ git branch [name of branch]
Example 3: create a branch command
$ git push [name_of_your_new_remote] [url]
Example 4: create a branch command
$ git push origin :[name_of_your_new_branch]
Example 5: create a branch command
$ git push origin [name_of_your_new_branch]