Answers for "git clone specific branch only"

32

clone specific branch

git clone --single-branch --branch <branchname> <remote-repo>
Posted by: Guest on April-02-2020
7

clone specific branch

In general:

git clone -b <branch> <remote_repo>

Example:

git clone -b develop [email protected]:user/myproject.git
Posted by: Guest on August-03-2020
9

clone from a specific branch

git clone -b <branchName> <remote_repo_url>
Posted by: Guest on November-09-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
2

git clone specific branch

git clone --single-branch --branch <branchname> <remote-repo>

# eg
git clone -b opencv-2.4 --single-branch https://github.com/Itseez/opencv.git
Posted by: Guest on October-22-2020
1

how to clone a specific branch from github that you are not working

git clone -b <branch> <remote_repo>
Posted by: Guest on June-18-2020

Code answers related to "git clone specific branch only"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language