clone github code to specific branch and commit 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>