git create branch and commit changes code example
Example 1: create branch in git
# Create New Branch And Switch To It
$ git checkout -b myBranchName
Example 2: how to create a branch in git
$ git branch [name of branch]
# Create New Branch And Switch To It
$ git checkout -b myBranchName
$ git branch [name of branch]