start a git branch from another branch code example
Example 1: create new branch git from master
git checkout -b new-branch-name
Example 2: create new branch git
$ git checkout -b newBranchName
git checkout -b new-branch-name
$ git checkout -b newBranchName