Travis
35
Q:

git clone from specific branch command

git clone --single-branch --branch <branchname> <remote-repo>
9
In general:

git clone -b <branch> <remote_repo>

Example:

git clone -b develop [email protected]:user/myproject.git
3
git clone -b <your_branchname> <your_git-remote-repo>
3
git clone -b <branchName> <remote_repo_url>
2
git clone -b <branch> <remote_repo>
2
git clone -b <branch> <remote_repo>
git clone -b my-branch [email protected]:user/myproject.git
1
git clone --single-branch --branch <branchname> <remote-repo>

# eg
git clone -b opencv-2.4 --single-branch https://github.com/Itseez/opencv.git
0

New to Communities?

Join the community