title: Removing merges from history and rebasing non sequential commits
body: <p>I have the following git history, where I want to squash a commit and remove several merges</p>
  
  <pre><code>git log --graph --oneline --all
  * 80e2fa1     I want to squash this commit
  *   7850013   Merge branch 'master'  want to get rid of these branch merges
  |\  
  | * b645616 
  | * 4aee207 
  * | 6077ae7   Into this one
  * | bc882a2  
  |/  
  * 7607733  
  *   82643ed   Merge branch 'master'  
  |\  
  | * ead8b48  
  * | 5fadbff  
  |/  
  * 2e0797c  
  *   3552f8f   Merge branch 'master'  
  |\  
  | *  
  * |  
  |/  
  * e1defac  
  * 912c802  
  </code></pre>
  
  <p>But when I try to do a git rebase --interactive 6077ae7 I end up getting</p>
  
  <pre><code>  The previous cherry-pick is now empty, possibly due to conflict resolution.
  </code></pre>
  
  <p>I also don't get the merges when I'm doing the rebase going before the merge is this the correct way to remove them? this didn't work for me <a href="https://stackoverflow.com/questions/17577409/git-remove-merge-commit-from-history">git remove merge commit from history</a>.</p>