Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Bitbucket size increased (surpassed 2.0 GB) Edited


The size of my repository has increased suddenly yesterday evening. Currently the repo size is 2.2GB but if I look at the last commits this shouldn't be possible (we only made a few small commits). I know there is a "git -gc" command to cleanup garbage collection but I cannot run this on the cloud. Is there a way to trigger this?

Kind regards,


1 answer

1 accepted

0 votes
Answer accepted

Hello @RamonEsteveCuevas,

Any file on any branch contributes to the overall size of the repository. I believe what happened is someone accidentally pushed a big file but realised that and pushed a revert, however GC didn't trigger after the second update (it is not triggered on every push because it's quite expensive operation).

I just triggered aggressive garbage collection for your repository, and it reduced to around 800 Mb.


Hi @Daniil Penkin 

Thanks for the very fast response and action! As far as I can see it looks like we didn't pushed anything very large. We are just with a team of 2 people working in the repository.



Hi @Daniil Penkin

Our repository is again beyond the 2GB size limit. I enabled the "Delete dangling commits when over size limit" Allow users to mark repositories for git gc (BB-13894)  but that doesn't seem to fix it since I cant push anything anymore. Can you run the aggressive garbage collection again?

Kind regards,


Hi @RamonEsteveCuevas ,

Done, repo is now down to 824 MB again.


Suggest an answer

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

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

464 views 4 4
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