how to create branches in git code example

Example 1: git command to create a branch

//Create a New Branch
git checkout -b [name_of_your_new_branch]
//First Push
git push --set-upstream origin [name_of_your_new_branch]

Example 2: git create branch

$ git branch iss53
$ git checkout iss53

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: git create branch

$ vim index.html
$ git commit -a -m 'Create new footer [issue 53]'

Example 6: create a branch command

$ git branch -d [name_of_your_new_branch]