how to create a new branch in git and checkout code example
Example 1: create branch in git
# Create New Branch And Switch To It
$ git checkout -b myBranchName
Example 2: git create and checkout branch
$ git checkout -b <branch_name>
Example 3: how to create a branch in git
$ git branch [name of branch]
Example 4: git create and checkout branch
$ git branch <branch_name>
$ git checkout <branch_name>