git โคลนสาขา
git clone --single-branch --branch <branchname> <remote-repo>
git โคลนอกจากเฉพาะสาขา
git clone -b branchName repoUrl
ยังไงฉันโคลนมีเหยื่อที่เป็นแบรนซ์อยู่ใน git
git clone -b <your_branchname> <your_git-remote-repo>
git โคลนเฉพาะสาขา
git clone --single-branch --branch <branchname> <remote-repo>
# eg
git clone -b opencv-2.4 --single-branch https://github.com/Itseez/opencv.git
git โคลนเฉพาะสาขาเดียว
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