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.