Git clone a specific branch only

git clone --single-branch -b branchName remoteRepoName

Which will clones the specific branch and that branch only without cloning all the existing branches.

你可能感兴趣的:(Git clone a specific branch only)