git 拉取子模块 submodule

//第一步,初始化
git init 

//第二步,拉取,后面推荐使用ssh地址
git submodule add (+地址)
------
git submodule updata --init --recursive    下拉子模块

--------------------

报错:

fatal: not a git repository (or any of the parent directories): .git

原因:没有初始化

解决:

git init
原文地址:https://www.cnblogs.com/fuyuanling/p/11081208.html