tfs - Moving from TFSVC to GIT - Repository with partial History? -
we move tfsvc git. our current repository more 5 years old , contains ~78000 commits. far able have complete clone huge (~10gb). repository kept base our new git repo , read copy research on old source.
because of size, clean repo bfg , down ~1gb still way large. use release branches , need move new system dev trunk , last couple of release branches. older branches , commits can looked in 10gb repository.
is possible cut off commits (aka history) of new repository date stamp? want keep last 6 months of commits , latest release branches.
basically comes down question: how housekeep git repo after years when grown? lets every years want keep last year. how achieve this?
i tried shallow clone not keep branches.
as mentioned in "is possible shallow git clone based on datetime?", possible git 2.11 (which released soon: 22 nov. 2016, , there previews already)
git clone --shallow-since=<date>
(see git clone
man page, , its test. feature implemented in commit 994c2aa)
regarding branches, see "git shallow clone (clone --depth) misses remote branches". if remote branch started commit before requested date, branch won't make shallow clone.
basically comes down question: how housekeep git repo after years when grown?
i keep bundle archive, , fetch --depth
branch want new shallow cloned repo.
Comments
Post a Comment