gama.old icon indicating copy to clipboard operation
gama.old copied to clipboard

Reduce repository size

Open RoiArthurB opened this issue 3 years ago • 4 comments

Is your request related to a problem? Please describe. Today's GAMA's github repository (after a fresh clone dated on commit 3422b50da) size 1.4 GiB, but most of it (1.1GiB) is only dedicated to git history !! image

Describe the improvement you'd like Maybe we could reduce size of this history in different ways :

  • Remove detailed history after XXX commits
    • git repack -a -d --depth=250 --window=250 keep last 250 commits, remove 1,254 files, but history doesn't change size
  • Remove detailed history after XXX commits + Lose track of deleted commits
    • git gc --aggressive --prune=now (didn't tried it)
  • Squash legacy commits with a project rebase
  • Else ? 🤷

RoiArthurB avatar May 10 '22 05:05 RoiArthurB

Just to mention that we are also running out of LFS space...

AlexisDrogoul avatar May 27 '22 16:05 AlexisDrogoul

Git LFS and Git history files are two things totally unrelated, first in practice, and second because gama-platform/gama repository doesn't use LFS :)

And the LFS GH's space should be resolved soon, it's a problem from one contributor on the experimental repository :)

RoiArthurB avatar May 28 '22 10:05 RoiArthurB

Has the LFS problem on gama-platform/experimental been solved ?

AlexisDrogoul avatar Jul 08 '22 14:07 AlexisDrogoul

I think we should move to a solution like the one exposed here (using a history repository): https://andrewlock.net/reducing-the-size-of-a-git-repository-with-git-replace/

AlexisDrogoul avatar Jul 08 '22 14:07 AlexisDrogoul

I think that we can close this proposal, as GAMA 2.0 will have its own repository --

AlexisDrogoul avatar Dec 29 '22 17:12 AlexisDrogoul