Answers for "clone a particular branch with particular commit"

47

clone specific branch

git clone --single-branch --branch <branchname> <remote-repo>
Posted by: Guest on April-02-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 "clone a particular branch with particular commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language