command to create a new branch in git

C++
// create and checkout new branch in one line
git checkout -b new_branch//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myFeature dev$ git checkout -b myFeature dev
$ git checkout -b <branch-name>

Source

Also in C++: