// Example for creating a new branch named myNewBranch git checkout -b myNewBranch // First Push git push --set-upstream origin myNewBranch
$ git checkout -b [name_of_your_new_branch]
// create and checkout new branch in one line git checkout -b new_branch
git 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 branch
git checkout -b <new-branch>
$ git checkout -b <branch-name>
$ git branch [name of branch]
$ git checkout -b newBranchName