Based on the recent announcement of 1GB repository size, I have updated my git history in one of my projects and reduced its size down to ~50mb. After several days. the repository still shows the original 800mb size.
My question: How often is the automatic git cleanup run, and could it be possibly triggered manually?
Technical Details:
This is what I did to calculate the new repo size (based on This existing question about the same topic):
I did a clean checkout and ran the following script:
$git count-objects -Hv
count: 0
size: 0 bytes
in-pack: 10153
packs: 1
size-pack: 50.98 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
Hey @arides ,
thank you for reaching out to the Community!
The GC is automatically executed from time to time based on some internal heuristics, such as the number of loose objects. However, we from support can help to expedite GC by manually triggering it from our end.
I can see you have access to multiple workspaces. In order for us to run the GC in the correct repo, could you share the masked workspace name and repo name with us?
For example, for a workspace named my_workspace and a repository named my_repo, you could share m**w***s***e/m**r*p*.
We'll then be able to trigger the manual GC for your repo.
Thank you, @arides !
Patrik S
Hey @arides ,
Thanks for sharing the repo name.
I've manually triggered a Garbage Collection on your repository and managed to reduce its size from 800MB back to ~50MB !
Now that GC is completed, I would highly recommend you having everyone on your team removing their old copies of the repository and doing a fresh clone of it. Since the old clones have a dirty history, it's better to delete them, so you don't risk pushing the dangling objects back into your cleaned repository, which would increase its size again.
Would you please confirm if everything looks good on your end now ?
Let me know if you have any other questions.
Thank you, @arides !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.