git branch clone code example
Example 1: clone specific branch
git clone --single-branch --branch <branchname> <remote-repo>
Example 2: git clone from specific branch
git clone -b branchName repoUrl
Example 3: gitlab clone branch
git clone --single-branch --branch <branchname> <remote-repo>
Example 4: pull and clone origin branch locally
git clone --branch <branchname> <remote-repo-url>
git clone -b <branchname> <remote-repo-url> // -b === --branch