create a new branch of another branch git code example
Example 1: create branch in git
# Create New Branch And Switch To It
$ git checkout -b myBranchName
Example 2: git new branch create
git checkout -b <new-branch>
# Create New Branch And Switch To It
$ git checkout -b myBranchName
git checkout -b <new-branch>