clone a branch to local code example
Example 1: git clone from specific branch
git clone -b branchName repoUrl
Example 2: git clone specific branch only
git clone -b mybranch --single-branch git://sub.domain.com/repo.git
git clone -b branchName repoUrl
git clone -b mybranch --single-branch git://sub.domain.com/repo.git