Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger git gc on the server

Harvey Hu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2019

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?

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2019

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

Harvey Hu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 1, 2019

Thank you @Daniil Penkin ,

But now my repository has already reached to 2.03G, what should I do to reduce it?

Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 1, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events