Paperless Post interview question

How do you rewrite history in git?