git 拉取子模块 submodule

//第一步,初始化
git init 

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

 

 

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

报错:

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

原因:没有初始化

解决:

git init

 

posted @ 2019-06-25 10:12  诺谟  阅读(13300)  评论(1编辑  收藏  举报
你好啊