title: Rebase multiple commits into one
body: <p>How can I quickly rebase this branch:</p>
  
  <pre><code>(MAJOR-A) &lt;-- (minor-1) &lt;-- (minor-2) &lt;-- (MAJOR-B) &lt;-- (minor-3) &lt;-- master
  </code></pre>
  
  <p>To this one:</p>
  
  <pre><code>(MAJOR-A) &lt;-- (MAJOR-B) &lt;-- (merged-minors) &lt;-- master
  </code></pre>
  
  <p>The <code>(merged-minors)</code> commit's place has no real matter, it could be as well:</p>
  
  <pre><code>(merged-minors) &lt;-- (MAJOR-A) &lt;-- (MAJOR-B) &lt;-- master
  </code></pre>
  
  <p>Sorry for duplicate, but I'm lost about how to do it, even if I guess it deals with <code>git 
  rebase -i</code> and the <code>squash</code> keyword.</p>
  
  <p>The best answer would be a git command to execute, instead of a link to a whole english doc to translate... thanks in advance.</p>