cd project1
git submodule add https://github.com/xxx.git libraries/fc
git status
git diff
git add .
git commit -m "add submodule"
git push origin master
cd ..
git rm --cached moduleA
rm -rf moduleA
rm .gitmodules
vim .git/config
git submodule add https://github.com/xxx.git libraries/fc
git status
git diff
git add .
git commit -m "add submodule"
git push origin master
cd ..
git rm --cached moduleA
rm -rf moduleA
rm .gitmodules
vim .git/config