有时候看到别人的代码很不错 但是默认克隆的都是master分支的内容,这个时候如果想要克隆其他分支代码怎么办
git clone -b +分支 + 地址
比如分支名为a git地址为 https://gitee.com/aaa/test.git
git clone -b a https://gitee.com/aaa/test.git
参考链接
使用git克隆指定分支的代码
有时候看到别人的代码很不错 但是默认克隆的都是master分支的内容,这个时候如果想要克隆其他分支代码怎么办
git clone -b +分支 + 地址
比如分支名为a git地址为 https://gitee.com/aaa/test.git
git clone -b a https://gitee.com/aaa/test.git
参考链接
使用git克隆指定分支的代码