Reducing the download size of a git repository #143098
Unanswered
MTRNord
asked this question in
Repositories
Replies: 1 comment 1 reply
-
A couple of articles came across my news feed on this topic this week: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Hi :)
I am one of the maintainers of https://github.com/matrix-org/matrix.org/ and we have the issue that a git clone is ~1.18GiB currently. I was wondering which are ways to identify and reduce this.
Obviously I know about LFS but the LFS pricing model is not sustainable for us so it is not an option.
We did already consider splitting out the old webpage which is lingering at https://github.com/matrix-org/matrix.org/tree/gatsby but I am not sure if this is really the culprit of size or if removing the branch will clean up the repository in any way (note that the current main branch is a whole different root node than the gatsby branch as they were developed independently).
So I wonder a) How to identify contributing factors to the repo size b) How to reduce those factors and c) How to do this in a way that it happens not locally but on the remote side :)
If you need any further information to answer feel free to ask.
Some stats on that note:
(After a
git multi-pack-index write --incremental
&&git maintenance run
)Beta Was this translation helpful? Give feedback.
All reactions