title: How to combine two branches from two different repositories in a single repository?
body: <p>The structures of my Git repositories look like this:</p>
  
  <pre><code>A-B-C-D-E-F   # master branch in separate repo1
  A-B-C-D-E-G-H # master branch in separate repo2
  </code></pre>
  
  <p>A-H are simple commits. As you can see the repositories are related (repo2 is a fork of repo1). I'm trying to combine these two repositories in one.</p>
  
  <p>Afterwards the single repository should have the following structure:</p>
  
  <pre><code>A-B-C-D-E-F   # master branch of previous repo1
          \
           \
            G-H # master branch of previous repo2
  </code></pre>
  
  <p>I've already spent a lot of time reading the Git User's Guide and so on. However, this (special) case of use doesn't seem to be documented anywhere.</p>