title: Git: How to rebase to a specific commit?
body: <p>I'd like to rebase to a specific commit, not to a HEAD of the other branch:</p>
  
  <pre><code>A --- B --- C          master
   \
    \-- D                topic
  </code></pre>
  
  <p>to</p>
  
  <pre><code>A --- B --- C          master
         \
          \-- D          topic
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>A --- B --- C          master
               \
                \-- D    topic
  </code></pre>
  
  <p>How can I achieve that?</p>