create origin branch as local git and push code example
Example 1: create new branch from origin
git checkout -b nameOfBranch origin/nameOfBranch
Example 2: git new branch push to remote
git push -u origin <branch>
git checkout -b nameOfBranch origin/nameOfBranch
git push -u origin <branch>