title: git change origin of a branch (rebase)
body: <p>f'I have the following:</p>
  
  <pre><code>A---B---C-----D--   branch dev
       \--C'-E-/      branch test
  </code></pre>
  
  <p>I did it bad: C and C' are almost the same commits, it would make more sense if I could make branch <em>test</em> start on C, instead of B.</p>
  
  <p>How could I do that?, I guess rebase, but I'm not sure how to use it, thx</p>
  
  <p><strong>edit</strong>: wasn't clear
  what I'd like:</p>
  
  <pre><code>A---B---C-----D--   branch dev
           \-E-/      branch test
  </code></pre>
  
  <p>or </p>
  
  <p>A--B--D--E--D if not possible</p>