title: How to import GIT repository into another one, with history?
body: <p>I would like to embed one repository into another one, in a fashion similar to how github handles project pages.</p>
  
  <p>The base idea is to create orphaned branch (without parents):</p>
  
  <pre><code>git clone myproject myproject_folder
  cd myproject_folder
  git co --orphan project2
  git rm -rf . # Remove everything from current index
  </code></pre>
  
  <p>To make github project page, you just name orphaned branch <code>gh-pages</code> and start committing to it. Now I would like in this state include another git tracked project, with history.</p>
  
  <p>The expected outcome would be:</p>
  
  <pre><code>git clone mymultipleprojects folder
  cd folder
  git co master  # Master project
  git co second  # Completely different, or just related project
  </code></pre>
  
  <p>I know that I can just copy other projects files and commit this, but then I would loose history, can I somehow preserve history?</p>