Answers for "repo has branches but when i clone it brings only master branch"

4

clone a given branch github

git clone --single-branch --branch <branch> <repository>
Posted by: Guest on April-28-2020
1

git clone specific branch only

git clone -b mybranch --single-branch git://sub.domain.com/repo.git
Posted by: Guest on December-14-2020

Code answers related to "repo has branches but when i clone it brings only master branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language