Request for Garbage Collection

Hans Huber
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!
June 24, 2023

Hello, I create a new branch at Bitbucket every month and delete the old one. In fact, I only have one branch at a time. Still, my repo keeps getting bigger, too big, although my code changes only minimally (always ~10MB). The repo now has a size of 2.5 GB. There can only ever be one branch with a maximum of 30 commits, i.e. a real production size of ~300MB, which will go back to 0 next month because I automatically delete the branch from the old month. After consulting the blog, docs, and forums at Bitbucket, I found that deleted branches aren't actually deleted, just flagged for deletion. To start a final deletion, a "garbage collection" is necessary. Locally that's not a problem. My local repo never gets bigger than 300MB. But in the Bitbucket backend I can't find a way to do this. But now I don't want to submit a request every month asking for a garbage collection. What options do I have to initiate a "git gc" in the Bitbucket repo itself? Via ssh? Thanks and greetings! Hans

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 27, 2023

Hi Hans and welcome to the community!

I'm afraid that there is no way for end users to trigger a git gc for their remote repos at the moment.

We have a feature request about this that you can vote for and watch here:

In the meantime, if you would like a git gc on your remote repo, you will need to raise a request here in the community or in our support portal if your workspace is on a paid plan.

I went ahead and triggered a git gc for your repo and its size has been reduced.

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

Hans Huber
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!
June 27, 2023

Thank you Theodora!

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 27, 2023

You are very welcome, Hans. Please feel free to reach out if you ever need anything else!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events