git拉取子模塊

  1. 如果首次克隆倉庫及其模塊,使用:
git clone --recursive 倉庫地址
  1. 對於倉庫首次拉取模塊,可以使用:
git submodule update --init --recursive
  1. 更新子模塊(適用於git 1.8.2及以上版本)
git submodule update --recursive --remote
  1. 更新子模塊(適用於git 1.7.3及以上版本)
git submodule update --recursive

或者

git pull --recurse-submodules
發佈了167 篇原創文章 · 獲贊 129 · 訪問量 29萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章