create and go to branch

C++
git checkout -b <branch_name>
Source

Also in C++: