How to add existing sub repository as a submodule in git?
I have a private codespace supermodule with submodule
codespace
foo/bar
git rm -f --cached foo/bar
git submodule add https://github.com/octocat/Spoon-Knife.git ./foo/bar