Reducing the download size of a git repository #143098
Replies: 2 comments 1 reply
-
A couple of articles came across my news feed on this topic this week: |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
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