We are about to move from TFSVC to git. Our current repository is more than 5 years old and contains ~78000 commits. So far I am able to have a complete clone which is huge (~10GB). This repository will be kept as base for our new git repo and as a read only copy for research on old source.
Because of the size, we do clean that repo with BFG and get it down to ~1GB which is still way too large. We use release branches currently and we need to move to the new system with the dev trunk and the last couple of release branches. Older branches and their commits can be looked up in the 10GB repository.
Is it possible to cut off the commits (aka the history) of the new repository by date stamp? We do want to keep roughly the last 6 months of commits and just the latest release branches.
Basically it comes down to the question: How do you housekeep your git repo after some years when it really is grown? Lets say every to years I want to keep only the last year. How do you achieve this?
I already tried a shallow clone but that does not keep the branches.