git create branch

C++
// Example for creating a new branch named myNewBranch
git checkout -b myNewBranch

// First Push
git push --set-upstream origin myNewBranch//Create a New Branch
git checkout -b [name_of_your_new_branch]
//First Push
git push --set-upstream origin [name_of_your_new_branch]$ git checkout -b [name_of_your_new_branch]$ git branch iss53
$ git checkout iss53$ git checkout -b iss53
Switched to a new branch "iss53"$ vim index.html
$ git commit -a -m 'Create new footer [issue 53]'
Source

Also in C++: