I have to deploy my code for third agency, as there has some previcy info in the old commit history. Though now I has add this previcy info to gitignore, but it's keeped in the old history.
So how to make the old history invisible to the third agency.
I've tried two below methods,
- make another deploy repo for deploying, remove .git, and init it as a new repo. Then add develop repo as remote, pick each new commit from it. Though this works, pick commit will cost too many time eachtime where has new commit in the develop repo.
- in the develop repo, squash all old commit, but there has too many commit, and has a lot of conflict in the squash process. And this will lost the old commit .
Is there a proper way to make it.