How to use submodule

Add new submodule

git submodule add -b dev https://github.com/devcfei/submodule1.git submodule1
git submodule add -b dev https://github.com/devcfei/submodule2.git submodule2

Delete submodules

rm -rf <submodule_path>
vi .gitmodules
vi .git/config
rm .git/module/<submodule>
git rm --cached <submodule>