git create local repository from remote branch code example
Example: create local and remote branch
git checkout -b yourBranchName
git push -u origin yourBanchName
git checkout -b yourBranchName
git push -u origin yourBanchName