git clone repository branch to another repository 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>