title: Flatten old history in Git
body: <p>I have a git project that has run for a while and now I want to throw away the old history, say from start to two years back from now. With throw away I mean replace the many commits within this time with one single commit doing the same. </p>
  
  <p>I checked <code>git rebase -i</code> but this does not remove the other (full) history containing all commits from git.</p>
  
  <p>Here a graphical representation (d being the changesets):</p>
  
  <blockquote>
  <pre><code>(base) -&gt; d1 -&gt; d2 -&gt; d3 -&gt; (HEAD)
  </code></pre>
  </blockquote>
  
  <p>What I want is:</p>
  
  <blockquote>
  <pre><code>(base) -&gt; d1,d2 -&gt; d3 -&gt; (HEAD)
  </code></pre>
  </blockquote>
  
  <p>How could this be done?
  Thanks.</p>
  
  <p><strong>EDIT</strong> </p>
  
  <p>I got it working with </p>
  
  <pre><code>git rebase -i cd1e8c9
  </code></pre>
  
  <p>with cd1e8c9 being the start revision (base) to squash. Then I used fixup to meld the revisions together. Thanks.</p>