Clone a specific Git branch - Stack Overflow
git clone -b my-branch https://git@github.com/username/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 2.4 --single-branch https://github.com/Itseez/opencv.git opencv-2.4
Read full article from Clone a specific Git branch - Stack Overflow
No comments:
Post a Comment