title: Cloning a git repo with all submodules
body: <p>I have a working git repository containing several submodules (obtained by cloning different repositories). </p>
  
  <p>Now, I want to <strong>copy the whole repository (with all the submodules)</strong> 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). </p>
  
  <p>Is this possible ? In my attempts, in the cloned repository the submodule directory is empty.</p>
  
  <p>P.S. I know that this is not the correct workflow (see <a href="https://stackoverflow.com/questions/9811514/creating-a-public-repo-with-submodules">creating a public repo with submodules</a>), however there is no possibility of updating the original submodule.</p>