I have a working git repository containing several submodules (obtained by cloning different repositories).
Now, I want to copy the whole repository (with all the submodules) to a bare git repo on a different machine by either using pushing or cloning. I'm fine loosing the history of the submodules (I'm just interested in keeping their content).
Is this possible ? In my attempts, in the cloned repository the submodule directory is empty.
P.S. I know that this is not the correct workflow (see creating a public repo with submodules), however there is no possibility of updating the original submodule.