How to add existing sub repository as a submodule in git?
I have a private codespace supermodule with submodule
codespace
You don't need to clone manually first. After running git submodule add [url] [path] run git submodule update, which will clone/pull all submodules for you.
git submodule add [url] [path]
git submodule update