title: Migrate projects from existing Git repo to restructured Git repo
body: <p>I have multiple projects in a Git repo as shown below</p>
  
  <pre><code>ProjA
   |- file1
   |- dir1/file2
   |-dir2/file3
  
  ProjB
   |- fileA
   |-dirB/file4
  </code></pre>
  
  <p>I need to migrate those projects to a new Git repo, which should have the following structure:</p>
  
  <pre><code> NewProj
    |-- ProjA --| -file1
                |-file2
                |- file3
    |--ProjB --|-file4
               |--NewDir/fileA
  </code></pre>
  
  <p>Any help will be appreciated.</p>