关于'The submodule *** was not properly initialized with a .gitmodules file'

问题描述

1
$ Your page is having problems building: The submodule themes/next was not properly initialized with a .gitmodules file. For more information, see https://help.github.com/articles/page-build-failed-missing-submodule.

分析

此问题一般是因为git仓库中引用其他git仓库,而未通过子模块添加或初始化原因导致的。

解决方案

在已经通过git版本控制的代码库里,如果需要引入另外一个git管理的项目时,我们可以通过 git submodule命令来添加

1
$ git submodule add https://github.com/xxx.git /path/xxx

参考

文章目录
  1. 1. 问题描述
  2. 2. 分析
  3. 3. 解决方案
  4. 4. 参考
,