โคลนเฉพาะสาขา
git clone --single-branch --branch <branchname> <remote-repo>
โคลนเฉพาะสาขา
In general:
git clone -b <branch> <remote_repo>
Example:
git clone -b develop [email protected]:user/myproject.git
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 <repository_url>
git branch -a
git checkout <branch_name>