Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 😊

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 N M 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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,519 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you