create a branch command 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]

Example 3: create a branch command

$ git push [name_of_your_new_remote] [url]

Example 4: create a branch command

$ git branch -a

Example 5: create a branch command

$ git push origin :[name_of_your_new_branch]

Example 6: create a branch command

$ git branch -d [name_of_your_new_branch]

Example 7: create a branch command

$ git fetch [name_of_your_remote]

Example 8: create a branch command

$ git push origin [name_of_your_new_branch]

Tags:

Misc Example