git clone branch on another local branch code example
Example 1: git clone from specific branch
git clone -b branchName repoUrl
Example 2: pull and clone origin branch locally
git clone --branch <branchname> <remote-repo-url>
git clone -b <branchname> <remote-repo-url> // -b === --branch