Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,197
Community Members
 
Community Events
168
Community Groups

How to force git garbage collection?

Edited

We hit the 4gb limit and I did followed "Reduce repository size" guide to revert latest commit and also I turned "Delete dangling commits when over size limit" on in Labs, but somehow repo size just increased in size even more and it stays 5.9 GB for now for a few days, it seems that git gc were not initiated

 

url of the repo: git@bitbucket.org:DoMyBestGames/school.git

 

*upd 1

Oh we did figured out that "Delete dangling commits when over size limit" setting is set per user and not per repo as I thought. We enabled this feature for the second user of this repo (he did the final commit) and hopefully this will trigger garbage collection, we'll see in a minutes I guess

 

*upd 2

Nope, three hours passed, no difference 🙄

3 answers

1 accepted

0 votes
Answer accepted
Caroline R Atlassian Team Jan 11, 2022

Hi, @Deadcow

I saw that you created a ticket with our support related to the same question and we have already answered you there, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let’s focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,
Caroline

Thanks! All is fine now 😊

0 votes
Vishwas Community Leader Jan 09, 2022

Hey @Deadcow 

I have seen Atlassian Team checking from there end and doing gc. Hopefully they will reply here soon :)

Meanwhile have you checked this bfg utility which allows to do gc 

https://rtyley.github.io/bfg-repo-cleaner/

Regards,

Vishwas

Yeah! I found out about bfg just when we hit the 4gb limit and now I'm afraid to use it while we have dangling uncommited changes. 

I'd like to try this tool for sure when I get back controls over the repo :)

Like Vishwas likes this
0 votes

Hi! 

could you create a new repo in bitbucket and push old local repo and look the size after new git clone ?

I tried that, it is much lower in size. I think gc should help. Seemingly only atlassian admins can help with this   

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,470 views 3 10
Read article

Atlassian Community Events