title: (git): How to bring specific commit from upstream branch?
body: <p>I have this (git repo):</p>
  
  <pre><code>A--B--C--D -&gt;master
     \--E    -&gt;dev
  </code></pre>
  
  <p>And I want to bring only commit <code>D</code> to branch <code>dev</code> (<code>D</code> doesn't depend on <code>C</code>), so that:</p>
  
  <pre><code>A--B--C--D  -&gt;master
     \--E--D' -&gt;dev
  </code></pre>
  
  <p>But D' shouldn't get added to master after a merge:</p>
  
  <pre><code>A--B--C--D--E' -&gt;master
     \--E--D'/   -&gt;dev
  </code></pre>
  
  <p>This is because I want to bring only a file update without having to pollute <code>dev</code> with new files that <code>C</code> (which represents another, big merge) adds.<br>
  I'm guessing I need to use <code>git rebase</code>, but I can't guess how.</p>