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

git gc on remote repo after using BFG-cleaner

Hi there,


My team's repo size exceed 1.0GB and I was successfully reduced its size to 490.1 MB. However, after I push the cleaned bare repo up, it moved those big blobs on remote to unreachable commit instead of removing them.

After some research, I found BitBucket admin has the ability to run a 'git gc' command on the remote repo to collect and clean those unreachable commits. Is that the only way to do this?

Thanks in advance!

1 answer

1 accepted

0 votes
Answer accepted

Hello @qifan_wang,

As this guide suggests, you'd need to open a support case with us to force trigger GC. However, in your case it's not that important as 1 GB is a soft limit, i.e. you get a warning but can keep working with the repository just as normal. GC will eventually kick in and remove that large blob.

You didn't mention the repo in question so I took a guess which one you meant and ran GC for it which reduced its size significantly.

If that wasn't the right one, please proceed with opening a support case.


Hi Daniil, your guess is correct and thank you so much for the quick turnaround!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,706 views 10 16
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