zl程序教程

您现在的位置是:首页 >  系统

当前栏目

git拉取子模块

2023-09-11 14:21:25 时间
  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