creating a branch in git

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]$ git checkout -b [name_of_your_new_branch]# Create New Branch And Switch To It
$ git checkout -b myBranchNamegit checkout -b <branch_name>How to create a new branch in git 

$ git checkout -b good

here good is new branch name
the line 3 after executing we will go to that branchgit checkout -b <new-branch>
Source

Also in C++: