git submodule

git clone --recurse-submodules [url]

添加submodule

git submodule add [url] [path]

更新submodule

git submodule update --init --recursive
原文地址:https://www.cnblogs.com/smallredness/p/11196359.html