Imagine that I have a git repository called foo and I want to clone it into another directory named bar.
What I normally could do, assuming that foo is already cloned somewhere on-disk, is this:
git clone foo bar
And that will clone foo into bar. But if foo has submodules, then bar will not get the files in those submodules. Normally, you'd want to use git clone --recursive foo bar to add those submodule files over. That will clone the repository, its submodules, and each submodule's refs into bar.
However this is actually not what I am looking for. I don't want bar to contain any submodules, just the files from foo. Since foo is cloned locally this seemed possible but I don't see in git clone's documentation about how to do it. Is there a way to do what I'm looking for in a (ideally single) command?
