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

Why is my Bitbucket repo size larger than my local repo after removing large files?

My repo is showing size = 1.4G on Bitbucket. I followed the instructions to reduce its size by removing large files using 


Now my local repo says its only 547M but Bitbucket is still showing 1.4G.

git count-objects -v 

count: 70

size: 1228

in-pack: 24167

packs: 1

size-pack: 547317

prune-packable: 0

garbage: 0

size-garbage: 0

1 answer

0 votes

Hello @jeastman,

This is likely because garbage collection has not yet been triggered on server side. This is somewhat resource consuming operation, so it doesn't run on every repository update.

As the guide suggests:

After you push your changes, contact Support to run a git gc on the server for you. This is git garbage collection which runs housekeeping tasks on the repository to reflect the change in the size.

I'm happy to trigger garbage collection for you, however I wasn't able to find any repository with the size of 1.4GB among your repositories, so please let me know which one it is, or open a support case using the link above.

Let me know if you have any questions.


I did file a support ticket and also moved a bunch of large files to LFS. They gc-d my repo and its a happy 315M now.  Thanks!

Like Daniil Penkin likes this

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,892 views 0 7
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