Try `git rebase --abort`, then find the hash X of the commit immediately before the oldest commit you want to delete, and `git rebase -i X`. An editor opens up, and you can get rid of undesired commits by deleting the lines corresponding to the commits.