xxxxxxxxxx
git rebase -i <sha1-commit-hash>
Then, an editor opens that shows up the commits following the one you have
selected. It will offer you to input the command for each commit. All you need
to do is typing "drop" at the beginning of each commit you want to delete.