git submodule的操作

对于有submodule的库,检出的方法是:

git clone https://github.com/BelledonneCommunications/linphone-android.git --recursive

如果由于被墙而不能下载,或者网络问题中途断掉了,可以使用

git submodule update --recursive

接着传送没传的submodule.

如果有submodule被墙了,则可以先再codingnet上导入一个公开项目,这样下载codingnet上的项目;或者直接再github上搜索对应的项目名,下载下来就可以了.

原文地址:https://www.cnblogs.com/welhzh/p/4601575.html