github clone a particular branch code example
Example 1: gitlab clone branch
git clone --single-branch --branch <branchname> <remote-repo>
Example 2: clone a branch
git clone --single-branch --branch <branchname> <remote-repo>
git clone --single-branch --branch <branchname> <remote-repo>
git clone --single-branch --branch <branchname> <remote-repo>