git 下载子模块 发表于 2018-06-27 更新于 2023-05-12 分类于 git 下载的 repository 依赖于子模块,但是 clone 这个 repository 时子模块不会被 clone 下来,要完整编译运行这个 project 需要把其子模块下载下来. 切换 pwd 到这个 repository 执行如下命令,下载其依赖的全部子模块 1git submodule update --init --recursive