Can you just reset it to the master branch? It should allow you to do so.

Could you rebase all those in a single commit.