git create and checkout branch

C++
//Create a New Branch
git checkout -b [name_of_your_new_branch]
//First Push
git push --set-upstream origin [name_of_your_new_branch]// create and checkout new branch in one line
git checkout -b new_branch$ git checkout -b myfeature dev
$ git checkout -b <branch_name>
$ git branch <branch_name>
$ git checkout <branch_name>

Source

Also in C++: