更新子模块
如果是 clone 仓库忘了加 --recursive 导致子模块没有被 pull 下来。那么可以使用下面的命令 初始化 子模块:
git submodule update --init
下面的命令将所有子模块更新到最新版本:
git submodule update --remote --recursive
更新子模块的 URL
首先编辑 .gitmodule 中的 url。然后调用 git submodule sync
更新 URL
如果是 clone 仓库忘了加 --recursive 导致子模块没有被 pull 下来。那么可以使用下面的命令 初始化 子模块:
git submodule update --init
下面的命令将所有子模块更新到最新版本:
git submodule update --remote --recursive
首先编辑 .gitmodule 中的 url。然后调用 git submodule sync
更新 URL