create branch from origin master code example
Example 1: create new branch from origin
git checkout -b nameOfBranch origin/nameOfBranch
Example 2: create new branch git from master
git checkout -b new-branch-name
git checkout -b nameOfBranch origin/nameOfBranch
git checkout -b new-branch-name