欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

如何只克隆git仓库中的一个分支?

shiping1 的头像

如何只克隆git仓库中的一个分支?

 
如何只克隆git仓库中的一个分支?git clone默认会把仓库中的所有分支都复制到本地,如何只克隆指定的某个分支?
2013-07-24 15:04 1 条评论 分享

 

 

4 个回复

Shell_HAT - Do all in command line

git clone -b <branch> <remote_repo> 例如: git clone -b 指定的分支名字
这个属于自问自答?
2013-07-24 15:27 1 条评论

0

crazyhadoop - 这个代码有点难

这就是答案啊 git clone -b <branch> <remote_repo> 例如: git clone -b 指定的分支名字
2013-07-24 15:44 添加评论

0

T-Bagwell - What's the fucking is going on?

git clone <remote_repo> -b <branch> 这样就是某个分支呀
2013-07-24 22:05 添加评论

0

小何清波 - Hi

同一楼
普通分类: