This is the repository size is over 2G, I've reduced it referring https://confluence.atlassian.com/x/xgMvEw; run command git count-objects -v, seeing that the size is less than 1G; but on the bitbucket website, it's still warning that repository size is over 2G.
Seems we have to do the last step: After you push your changes, contact Support to run a git gc
on the server for you. I have submit the support request.
As there have frequent updates for my repository, the size is easier reach to 1G, I don't want to contact support frequent.
Is there other way to trigger the garbage collection(git gc)? How to config it?
Hi @Harvey Hu,
Unfortunately, there's no way to explicitly trigger server-side garbage collection. However, it runs from time to time when you push to the repository, so my advise would be to action the growing size earlier – when you get the warning about large size but before it hits the hard limit of 2G when Bitbucket stops accepting new commits to that repository.
If you haven't reached the hard limit, you can keep working with the repository, and eventually gc should kick in.
Let me know if you have questions.
Cheers,
Daniil
Thank you @Daniil Penkin ,
But now my repository has already reached to 2.03G, what should I do to reduce it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, in this case you'd normally need to reach out to our Support team here, because it's quicker and also private (anything you write here, in Community, is public).
I took a wild guess of what repository you're talking about and ran gc, the size has halved. If I didn't guess the right one, please open a case specifying which one did you mean.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.