title: GIT undo a commit that isn't the most recent, rebase all commits since
body: <p>Earlier on, I committed some code which at the time seemed like a good idea, but in fact it made things worse. I'd like to remove the change from the history as it is not helpful, and rebase all commits since - they should all merge without issues.</p>
  
  <p>I tried creating a new branch (called <code>newMaster</code>) immediately before the bad commit (with gitx), checking it out and running:</p>
  
  <pre><code>git rebase -i master
  </code></pre>
  
  <p>Which AFAICS should have given me a list of the commits on master and the option to merge or not merge them, but instead it said noop, and fast forwarded newMaster to be equal to master.</p>
  
  <p>What is the easiest way to do what I need?</p>