使用包括子模块的git进行拉取 [英] pull using git including submodule

查看:1216
本文介绍了使用包括子模块的git进行拉取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个iOS项目中,我添加了一个子模块,让我说我的一个朋友想要拉它,包括子模块,他怎么能做到这一点?每当我尝试从github下载zip文件时,它都不会将子模块与它一起拉出来。

解决方案

- 递归选项,以便自动初始化和更新子模块(以及这些子模块包含的任何子模块等)。

  git clone --recursive< URL-OF-REPOSITORY> 


In one of my iOS project I have add a sub-module added, lets say a friend of my wants to pull it including the submodule, how can he do this? Whenever I tried to download the zip file from github it doesn't pull the submodule along with it

解决方案

You can clone with the --recursive option in order to automatically initialize and update the submodules (and any submodules that those submodules contain, etc.)

git clone --recursive <URL-OF-REPOSITORY>

这篇关于使用包括子模块的git进行拉取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆