create and checkout branch github code example
Example 1: create branch in git
# Create New Branch And Switch To It
$ git checkout -b myBranchName
Example 2: create branch from another branch
$ git checkout -b myFeature dev
# Create New Branch And Switch To It
$ git checkout -b myBranchName
$ git checkout -b myFeature dev