BFG doubles the size of repo?? How to run git gc on remote? Edited

I ran BFG following official documentation on BFG's website. But after doing push my remote repository becomes doubles the size. Can anybody help me . I've read many queries asking similar stuff, they suggest Atlassian team has to run the aggressive gc on their side. Please help

2 answers

1 accepted

1 vote

Hi @Vipul Shivnani and @Nic Brough [Adaptavist]! Normally the size on the remote will adjust automatically (you just need to be patient and give it some time). However, sometimes it takes longer than expected and in those cases an aggressive GC or even a regular GC will help.

I've run a garbage collection on your remote repository and the size decreased to 1.5 GB. Is there anything else I can help you with?

Cheers :)


@Ana Retamal Ortiz you are awesome Thanks.

I was actually doing this on a test repo. I will do this now on my prod repo. Will you be able run it again after I do so ?

Once again appreciate your help. Thanks.

Hi @Ana Retamal Ortiz ,

I did another BFG process for my main prod repo. Is it possible for you to run another aggressive gc or I should wait ?

Please advise. Appreciate your help . Thanks 

Hi @Vipul Shivnani, I've checked your account and I don't see any repo over 2GB. It could be that the automatic gc ran already, or that you're referring to a different account. Let me know if you need any help!


Hi @Ana Retamal Ortiz I have one repo which is showing 2.9 GB arap-next . ( Can you have a look at this one ? 

Thanks !!

@Vipul Shivnani Done! The size is now 999.5 MB.

Have a nice day :)


Awesome!! made my day !!!!

Thanks @Ana Retamal Ortiz . Have a nice day :)

0 vote

Aggressive GC isn't going to help here.  The problem is the volume of data and BFG failing to handle it. 

hi @Nic Brough [Adaptavist] , Thanks for the reply.

whats the best way to proceed. Any suggestions ?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

171 views 20 8
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you