title: Git, rebasing an incorrectly branched branch
body: <pre><code>git clone blah
  git checkout -b development
  git checkout -b bug581
  hack hack
  git checkout -b bug588
  hack hack
  </code></pre>
  
  <p>oh wait, bug 588 should sprout from development, not 581.</p>
  
  <pre><code>git rebase --onto development bug581 bug588
  </code></pre>
  
  <p>gives me:</p>
  
  <pre><code>Cannot rebase: You have unstaged changes.
  Please commit or stash them.
  </code></pre>
  
  <p>err, but i dont? git status shows working directory is clean. so lets stash just for giggles.</p>
  
  <pre><code>git stash
  git rebase --onto development bug581 bug588
  </code></pre>
  
  <p>ok now it works, but its pulling the history of bug 581 and 588, i just want the history of 588, not what was in 581.</p>