git submodule

git clone -b develop ssh://git@xxx.git 项目名
cd 项目目录
git submodule update –init –recursive

更新代码

submodule变更了版本:

git pull –recursive

git submodule upadte

submodule没有变更版本:

cd submodule目录
git checkout origin/develop
git pull origin develop

https://zhuanlan.zhihu.com/p/87053283

https://git-scm.com/book/en/v2/Git-Tools-Submodules