how to clone repo to another branch code example
Example 1: git clone from specific branch
git clone -b branchName repoUrl
Example 2: how to git clone a specific branch
# Using gh CLI
gh repo clone <username>/<reponame> -- -b <branchname>
git clone -b branchName repoUrl
# Using gh CLI
gh repo clone <username>/<reponame> -- -b <branchname>