Sometimes I start a project on github. I will make say around 100 commits and now I am ready to tweet about it. I want to have a clean commit history. So I delete the project and start a new project. Sometimes I would rollback all the previous commits and then will add one commit with final output.
How do I undo all the previous commits and then have just one commit with final output.