how to create a new branch in github

C++
// delete branch locally
git branch -D localBranchName

// delete branch remotely
git push origin --delete remoteBranchName//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myfeature dev$ git checkout -b [name_of_your_new_branch]git checkout -b [name_of_your_new_branch]- git branch xyz ==>
 it creates new branch named 'xyz' but still keep being on master branch
- git checkout xyz ==>
it will change your branch to the develop branch
- git checkout -b xyz ==> 
it creates also a branch named xyz and switches to it automaticallygit branch 
Source

Also in C++: