There's no sense in deleting a project's history before the fork, which is what that would do.
It's really quite simple:
git reset --hard <some-commit-hash>. This will set HEAD to that commit, along with the contents of the working directory. You are the free to push to whichever git forge you are hosting on.