git submodule

0

添加

git submodule add <repository> <path>

同步

git submodule update --init --recursive

删除

# 删除配置.gitmodules
git config -f .gitmodules --remove-section submodule.<path>
# 删除配置.git/config
git config --remove-section submodule.<path>
# 删除目录
rm -rf .git/modules/<path>
# 删除模块
git rm --cached <path>