title: Git merge the middle commit in a branch
body: <p>This is my current repo.</p>
  
  <pre><code>Z(master)---A---B---C---D(branch A)
             \
              ---E---F(branch B)
  </code></pre>
  
  <p>I want to merge commit A to master, can anyone advise how to do that?</p>
  
  <p>(desired)</p>
  
  <pre><code>Z---A(master)---B---C---D(branch A)
       \
        ---E---F(branch B)
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>The advance of base to branch B from A to B is my typo. Please disregard it. Sorry for the confusing! Even I still learn a trick.</p>