Git

How to delete the commit history in github

Sudeep Acharya
Sometimes you may find deleting the commit history of your github project repository useful. You can easily delete the commit history by following the procedure below. It is always useful to keep the backup of your repository in your computer before removing all the commit history. Let us start by cloning a github project. I am cloning ‘myproject’, you clone yours. git clone https://github.com/acsudeep/myproject.git Since all the commit history are in the “.