title: Multi module maven project in a new local git repository?
body: <p>Yesterday and today i converted my eclipse juno project to multi module maven project in eclipse. I have 1 maven project of type 'pom-root' and all my other projects are modules. The modules have the root project as parent. This works correctly.</p>
  
  <p>A few hours ago i did try to add the root project to egit, by simply right clicking the root project and picking share project -> egit. </p>
  
  <p>I first created a new repository in a new directory, the result was that all my module project became empty and all source files were copied to the repository directory. Gladly i did see that and could recover easily by copying the files back.</p>
  
  <p>Next after the failed attempt i tried to create the repository in the parent folder of project. This failed somehow and the root project became corrupt. After a lot of fiddling around i deleted the corrupt root project and created a new one of type 'pom-root', and somehow i managed to get everything running again.</p>
  
  <p>Next i surfed to stackoverflow ( :-) ) and ask my question:</p>
  
  <p>How can i put my multi module maven project in a new local git repository? (without losing or corrupting everything)</p>