加源
git submodule add -b branch_name git@github.com:javasgl/xxx.git module_path
git submodule update --init
换源
git deinit --force contrib/xxx
git rm --cached module_path
# 移除相关代码
rm .git/modules/module_path
参考:
https://javasgl.github.io/git-submodule/
https://stackoverflow.com/questions/43789152/git-removing-submodule-error