With git you can specify the clone depth and only get the latest X versions. And there are ways to trim history with external plugins ( git filter repo).
You have to remake every commit of the repository which basically means you have a new repository, and new commits. In order to do the latter thing you said, you cannot have done the former thing you said.