title: How to get all commits committed to a branch which is already merged to master
body: <p>I have a commit history like following:</p>
  
  <pre><code>A---B---C---D---E---F---J---K---L---M master
       \         /               /    
        G---H---I-----------N---O       bugfix
  </code></pre>
  
  <p><code>bugfix</code> branch is based on commit <code>B</code> on <code>master</code> branch. It was merged many times to the <code>master</code>. Meanwhile there were other commits on <code>master</code>.</p>
  
  <p>I want to get all the commits committed to <code>bugfix</code> branch <code>G</code>, <code>H</code>, <code>I</code>, <code>N</code> and <code>O</code>. Better as a patch file, much better including all commit messages so that after applying the patch I get 3 commits with the original messages. However, it is ok if I can get only the commit hashes without all those extra wishes.</p>
  
  <p>The commits shouldn't include <code>A</code> and <code>B</code> although the <code>bugfix</code> branch is based on <code>B</code>.</p>
  
  <p>Is that possible?</p>