婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識(shí)庫 > git clone 子模塊沒下載全的問題解決

git clone 子模塊沒下載全的問題解決

熱門標(biāo)簽:鶴壁高頻外呼系統(tǒng)多少錢一個(gè)月 外呼系統(tǒng)怎么群發(fā)短信 地圖標(biāo)注項(xiàng)目幾個(gè)月 400電話申請(qǐng)到底哪家好 400電話辦理費(fèi)用低 蘇州呼叫中心外呼系統(tǒng)哪家強(qiáng) 谷歌地圖標(biāo)注日期 聯(lián)通外呼系統(tǒng)電腦app軟件 宿遷怎么辦理400電話

★ 1. 下載一個(gè)包含很多子模塊的工程

例如:git clone --recursive https://github.com/caffe2/caffe2

如果網(wǎng)絡(luò)不好或者其他原因?qū)е伦幽K沒有下載完全,這時(shí)用git pull是無法下載完全的。

注:這是在英文環(huán)境中執(zhí)行的結(jié)果,英文Submodule在中文環(huán)境中翻譯為“子模組”了。 

從log中可以看出,有很多子模塊(為節(jié)省篇幅,完整log略,可以自行下載測試)。

$ git clone --recursive https://github.com/caffe2/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'
(略) 

★ 2. 下載子模塊

git submodule update --init --recursive1

如果你不確定子模塊是否都已經(jīng)下載完全了,也可以執(zhí)行一遍這個(gè)命令確認(rèn)一下。

★ 3. 參考 git clone --help

•git 2.7.4版本:

--recursive, --recurse-submodules
 After the clone is created, initialize all submodules within, using their default settings. This is equivalent to running git submodule
 update --init --recursive immediately after the clone is finished. This option is ignored if the cloned repository does not have a
 worktree/checkout (i.e. if any of --no-checkout/-n, --bare, or --mirror is given) 

•git 2.14.1版本:

--recurse-submodules[=pathspec]
 After the clone is created, initialize and clone submodules within based on the provided pathspec. If
 no pathspec is provided, all submodules are initialized and cloned. Submodules are initialized and
 cloned using their default settings. The resulting clone has submodule.active set to the provided
 pathspec, or "." (meaning all submodules) if no pathspec is provided. This is equivalent to running git
 submodule update --init --recursive immediately after the clone is finished. This option is ignored if
 the cloned repository does not have a worktree/checkout (i.e. if any of --no-checkout/-n, --bare, or
 --mirror is given)

 到此這篇關(guān)于git clone 子模塊沒下載全的問題解決的文章就介紹到這了,更多相關(guān)git clone 子模塊沒下載全內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

您可能感興趣的文章:
  • git clone下來的代碼如何放在指定路徑

標(biāo)簽:鄂爾多斯 莆田 雙鴨山 遵義 丹東 襄陽 哈爾濱 錫林郭勒盟

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《git clone 子模塊沒下載全的問題解決》,本文關(guān)鍵詞  git,clone,子,模塊,沒,下載,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《git clone 子模塊沒下載全的問題解決》相關(guān)的同類信息!
  • 本頁收集關(guān)于git clone 子模塊沒下載全的問題解決的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 佛坪县| 浑源县| 新建县| 宿州市| 锦州市| 吉首市| 漠河县| 涡阳县| 塘沽区| 响水县| 长泰县| 长沙市| 延安市| 丰顺县| 阿合奇县| 宣威市| 呼和浩特市| 荥阳市| 德惠市| 错那县| 太保市| 平原县| 衡山县| 马公市| 黄平县| 玛沁县| 沂南县| 呼和浩特市| 建阳市| 昌都县| 德格县| 应用必备| 张家港市| 黄梅县| 大渡口区| 凤阳县| 淅川县| 米林县| 安阳市| 全州县| 浦县|