0

I have a pull request going on, which contains several unneeded commits by me.

The current commit is the only one, I want to keep. The commits have already been pushed to github so I can't use git rebase.

How can I delete all commits prior to my current commit?

ManuKaracho
  • 1,070
  • 1
  • 13
  • 27
  • 1
    Possible duplicate of [Delete commits from a branch in Git](http://stackoverflow.com/questions/1338728/delete-commits-from-a-branch-in-git) – Phiter Feb 12 '16 at 15:13
  • the problem is, that the commits are already pushed to the repo – ManuKaracho Feb 12 '16 at 16:38

0 Answers0