clone repo and pull branch code example
Example: pull and clone origin branch locally
git clone --branch <branchname> <remote-repo-url>
git clone -b <branchname> <remote-repo-url> // -b === --branch
git clone --branch <branchname> <remote-repo-url>
git clone -b <branchname> <remote-repo-url> // -b === --branch