📌  相关文章
📜  如何克隆特定的 Git 分支? - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:30.780000             🧑  作者: Mango

代码示例1
# syntax
git clone -b  

# Example
git clone -b my-branch git@github.com:user/myproject.git

# With Git 1.7.10 and later, add --single-branch to prevent fetching of all branches. 
# Example, with OpenCV 2.4 branch:
git clone -b opencv-2.4 --single-branch https://github.com/Itseez/opencv.git