I want to delete all commit history but keep the code in its current state because, in my commit history, there are too many unused commits.

How can I do it?

Is there any git command can do this?

git filter-branch ?
git rebase ?
... 

My code is hosted on github.com.

2 s
2

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *