BItbucket says repository is 1.2 GB but the local folder is not close Edited

I get warnings that my repository is to big, about 1.2 GB. But when I do

    du -hs *

on my machine I get

   198M    Matlab
    2,6M    MatlabLib
     46M    Projects


  du -hs .git

  195M    .git



git count-objects -Hv

count: 44
size: 176.00 KiB
in-pack: 2008
packs: 2
size-pack: 362.01 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes



1 answer

1 vote

Hi Erik, can you navigate to your repo's directory, run the following and show us the input?

git count-objects -Hv

If the size of the local repository still differs from the size of the remote, we might need to run a garbage collection for you in the server.

Let us know!



Hi, thanks for you reply. I have edited my post with the output you wanted.


/ Erik

I have found a couple of big files which I have deleted. I have also run 


$ java -jar bfg.jar --strip-blobs-bigger-than 10M

I just cloned it into my other computer and the total repository is around 195 MB, including .git. How do I request a garbage collection from your side?

Hi Erik! Let us know the name of the repo (I'm assuming it is hosted in your Bitbucket Cloud account) and we'll do it :)



Thanks, it is newresearch2.

We've run a git gc on the remote and the size decreased to 189.0 MB :) Is there anything else we can help you with?

Have a good day,



PS: For the future, it's better if you submit a new question for this kind of request ;)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,751 views 1 5
Read article

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