I have a git repo with a bunch of submodules in it. I want to add a submodule, but when I run git submodule add <[email protected]:...> in the directory, I get the following error message:
You need to run this command from the toplevel of the working tree.
So the question is: How do I add a submodule to the directory?