git克隆分支
git clone --single-branch --branch <branchname> <remote-repo>
git clone from specific branch
git clone -b branchName repoUrl
如何克隆git中的特定分支
git clone -b <your_branchname> <your_git-remote-repo>
git clone特定分支
git clone --single-branch --branch <branchname> <remote-repo>
# eg
git clone -b opencv-2.4 --single-branch https://github.com/Itseez/opencv.git
仅git clone特定分支
git clone -b mybranch --single-branch git://sub.domain.com/repo.git
特定分支克隆git
git clone -b <branch> <remote_repo>
git clone -b my-branch [email protected]:user/myproject.git