小编给大家分享一下git clone子模块没下载全怎么办,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!
创新互联建站是一家专注于成都网站设计、做网站与策划设计,奉化网站建设哪家好?创新互联建站做网站,专注于网站建设十多年,网设计领域的专业建站公司;建站业务涵盖:奉化等地区。奉化做网站价格咨询:18982081108★ 1. 下载一个包含很多子模块的工程
例如:git clone --recursive /tupian/20230522/caffe2
如果网络不好或者其他原因导致子模块没有下载完全,这时用git pull是无法下载完全的。
注:这是在英文环境中执行的结果,英文Submodule在中文环境中翻译为“子模组”了。
从log中可以看出,有很多子模块(为节省篇幅,完整log略,可以自行下载测试)。
$ git clone --recursive /tupian/20230522/caffe2 Cloning into 'caffe2'... remote: Counting objects: 36771, done. remote: Compressing objects: 100% (12/12), done. remote: Total 36771 (delta 6), reused 7 (delta 5), pack-reused 36754 Receiving objects: 100% (36771/36771), 149.13 MiB | 2.76 MiB/s, done. Resolving deltas: 100% (26926/26926), done. (这里只以子模块protobuf为例,其他子模块略) Submodule 'third_party/protobuf' (https://github.com/google/protobuf.git) registered for path 'third_party/protobuf' (略) Cloning into 'third_party/protobuf'... remote: Counting objects: 47717, done. remote: Compressing objects: 100% (49/49), done. remote: Total 47717 (delta 23), reused 23 (delta 5), pack-reused 47657 Receiving objects: 100% (47717/47717), 40.97 MiB | 59.00 KiB/s, done. Resolving deltas: 100% (32097/32097), done. Checking connectivity... done. Submodule path 'third_party/protobuf': checked out 'a428e42072765993ff674fda72863c9f1aa2d268' (略)