how to clone a branch of a git repository 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: clone branch git
git clone <repository_url>
git branch -a
git checkout <branch_name>
Example 4: pull and clone origin branch locally
git clone --branch <branchname> <remote-repo-url>
git clone -b <branchname> <remote-repo-url> // -b === --branch