このフォルダにサブモジュールがありabc/submodule
ます。次のコマンドで削除します。
rm -rf abc/submodule
# remove submodule in .gitmodules
# remove submodule in .git/config
git rm --cached abc/submodule
git push origin master
ここで、同じ場所に新しいサブモジュールを追加します。
git submodule add <link> abc/submodule
新しいサブモジュールの代わりに、古いサブモジュールのコンテンツが表示されます。どうすればこれを修正できますか?