小編給大家分享一下git clone子模塊沒下載全怎么辦,希望大家閱讀完這篇文章后大所收獲,下面讓我們一起去探討吧!
★ 1. 下載一個包含很多子模塊的工程
例如:git clone --recursive /tupian/20230522/caffe2
如果網(wǎng)絡(luò)不好或者其他原因?qū)е伦幽K沒有下載完全,這時用git pull是無法下載完全的。
注:這是在英文環(huán)境中執(zhí)行的結(jié)果,英文Submodule在中文環(huán)境中翻譯為“子模組”了。
從log中可以看出,有很多子模塊(為節(jié)省篇幅,完整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' (略)
分享題目:gitclone子模塊沒下載全怎么辦-創(chuàng)新互聯(lián)
網(wǎng)站網(wǎng)址:http://sd-ha.com/article22/jjgjc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供響應(yīng)式網(wǎng)站、定制開發(fā)、企業(yè)網(wǎng)站制作、自適應(yīng)網(wǎng)站、建站公司、微信公眾號
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容