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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • 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

Why Bitbucket cloud is showing a different size than my local repo?

Hello, in Bitbucket shows a size of 928.6 MB  but my repo locally is showing 462252 KB when I run "git count-objects -v". Am I missing something here? Is Bitbucket Cloud counting something else? I haven't change anything locally and did a git pull.

Thank you.

42 answers

1 accepted

1 vote
Answer accepted
Ana Retamal Atlassian Team Feb 02, 2018

Hi @Fricco

We have tools that allow us to see information from the user's account. We can also get temporary access to the user's account for troubleshooting purposes when the user request help, so if needed, I'll be able to access it even if the repo itself is private.

We've run a git gc from our side and the size of the repo is now 305MB. Is there anything else we can help you with?

Best regards!

Ana

Wow, thanks a lot @Ana Retamal, just to make sure, if I see a different size between what I see locally in my repo and the remote I should create this kind of post or what is the process for it?

Thank you.

Ana Retamal Atlassian Team Feb 02, 2018

You're welcome, Francisco :) The size of the repo will not be a problem until you reach the hard limit (2GB) in which case you won't be able to push any new changes. Bitbucket runs automatic garbage collections so the difference in size should be addressed soon.

However, if you're concerned about this or would like to make sure things are ok, you can always let us know here in Community and we'll run the garbage collection for you.

In case your repo does actually reach the 2GB, you can follow the instructions at Reduce repository size to fix it.

Hope that helps!

Ana

Like chibuike007 likes this

@Ana Retamal

I am facing the similar issue in my private repo https://bitbucket.org/kabuku/rinkak-mms-connect. The settings page says its size is 1.5 GB while `size-pack` of `git count-objects -v` is 450,238 KB. It's been more than a week since I noticed the gap between the sizes.

In my case, there had once been a big file in commit history, so I forked the repo to https://bitbucket.org/kenji_imamura/rinkak-mms-connect and rewrote history using BFG following the instructions to see if it helps reducing the size of the repo. Now, the settings page of the forked repo says its size is 1.6 GB while `size-pack` of `git count-objects -v` is 92,904 KB.

Will `git gc` also help my case?

Ana Retamal Atlassian Team Jul 04, 2018

Hi @Kenji Imamura! I've run a git gc on your repo kenji_imamura/rinkak-mms-connect and the size decreased to 91.0 MB. Do you need help with anything else?

Have a nice day :)

Ana

@Ana Retamal Thanks! Would you please run `git gc` on https://bitbucket.org/kabuku/rinkak-mms-connect as well ?

Ana Retamal Atlassian Team Jul 04, 2018

Hi @Kenji Imamura,I've run git gc for kabuku/rinkak-mms-connect and the size decreased to 362.3 MB. 

Cheers!
Ana

Great! Thank you so much!!

Ana Retamal Atlassian Team Jul 04, 2018

Glad I could help you! Have a great day, Kenji :)

Ana, can we run the git -gc on our remote repos stored in bitbucket ourselves or does someone on the atlassian team have to do it?

I need a cleanup on a repo. thanks.

Ana Retamal Atlassian Team Jan 24, 2019

Hi @pperez_24, I found 3 repos in your account that were reaching or exceeding the 2GB limit, and I've run a git gc on them. For one of them, the size was reduced from 2GB to 1.4GB, but for the other 2 repos the size didn't change, which means you'll have to reduce their size locally. The steps are explained in the article Reduce repository size.

Once you do that, wait a little bit for the automatic garbage collection to run on the remote. If it doesn't let us know so we can run it manually. 

Hope that helps :) 

Ana

Hi, can you please run the gc again on impressions3 ? thanks!

-p

Ana Retamal Atlassian Team Feb 13, 2019

Hi! I've run the git gc and the size decreased to 1.5 GB.

As a side note, I'd recommend you to change your username to something different from your email address, for security reasons. 

Hope that helps!

Ana

@Ana Retamal 

Hello,

we are also experiencing a similar issue with repo: https://bitbucket.org/sonnenwalzer/unity_remember

The local size-pack is about 1.2GB repo shows size of 1.8GB in settings tab since few weeks ago.

Ana Retamal Atlassian Team Mar 08, 2019

Hi @Donlod , welcome to the Community!

I've run a git gc on the remote and the size has decreased to 1.3 GB. Is there anything else we can help you with?

Best regards,

Ana

We do not have any further issues. Thank you for the quick support.

Ana Retamal Atlassian Team Mar 11, 2019

Glad I could help! 

Have a good day :) 

Ana

@Ana Retamal 

Hi,

Could you run gc on our repo? Local size-pack is 10MB while the remote shows 1.3GB.

Thanks.

Ana Retamal Atlassian Team Mar 11, 2019

Hi @Eddy Bakker , I've run a git gc on the remote and the size has decreased to 5.9 MB. 

Have a good day :D 

Ana

@Ana Retamal : could you also run gc on this repo: https://bitbucket.org/...

I did a cleanup using the BFG tool and reduced the size from 1.3gb to 400mb, but in bitbucket it shows as 1.5g.

Thanks.

Ana Retamal Atlassian Team Mar 14, 2019

Hi @Eddy Bakker , ran git gc and the size decreased to 283.5 MB. 

Cheers!

Ana

@Ana Retamal 
Hi Ana, I am also running through the same thing.
Did a cleanup with BFG and my repo got reduced from 1.3gb  to around 50mb. 
Same thing as everyone here, it still shows 1.3gb on my bitbucket account.

https://bitbucket.org/MRC-BI/hubx

I would appreciate the help

Ana Retamal Atlassian Team Apr 09, 2019

Hi Jacob, I ran a git gc on your remote and it decreased to 46.2 MB. 

Hope that helps!

Ana

@Ana Retamal  
thank you, I really appreciate it

Ana Retamal Atlassian Team Apr 10, 2019

:D

Ana Retamal Atlassian Team Oct 04, 2019

Hi @willtudorevans,

I've checked your repository 'saramek' and I could see it's just 125.7 MB. Is that the size your local repository is showing? Does it differ? Usually we won't manually run git gc unless the repositories are too big, please let us know if you need any further assistance with this!

Best regards,

Ana 

Yes thanks Ana - all fixed now! It was 2GB for a few days and then overnight dropped to 120MB.

Ana Retamal Atlassian Team Oct 04, 2019

Thanks for the update! 

Have a nice weekend,

Ana 

Hi Ana,

I'm trying to reduce the size in once of my repo's using git filter-branch and git gc.
But I'm not able to push to remote.

Could please run git gc on my repo 'ar.fx_mvp'

Ana Retamal Atlassian Team Oct 09, 2019

Hi @Gokul Rajasekhar

I've run a git gc on your remote but the size didn't change, it stays at 1.9GB. Can you confirm you've followed all the steps listed at Reduce repository size?

Let us know,

Ana

@Ana Retamal 
I've cleaned my git repo locally and tried to push it. It told me I needed to pull first since there were changes on the remote that I didn't had but since I committed last, that could not be. So I forced a push resulting in having different size in repos. It's not clear to me how to solve this. Could you help me? I'm talking about the colibry-services repo. 

Hello @Ana Retamal , I have the same problem,  could you please take a look at our repository?
https://bitbucket.org/skipthedishes/react_restaurant

@Ana Retamalhi, could you please be so kind and help us, we are facing same problem as others gc needed, thanks

Ana Retamal Atlassian Team Dec 11, 2019

Hi @Dmitri Bogatenkov ,

I've checked your repos and found one that is 2GB in size, but after running the git gc the size didn't change. Can you run the following command on your side and show us the output?:

git count-objects -Hv

Let us know and we'll be happy to continue helping you. 

Cheers,

Ana

Can we run gc by ourselves in our repos?

Ana Retamal Atlassian Team Oct 04, 2019

Hi @ariel

End users don't have access to the remote repositories as they're hosted in Bitbucket, so you won't be able to run git gc there. Git gc runs automatically on the repos, although sometimes you can ask us to run them manually if you urgently need the size to be reduced to the same size you have on your local (after you've followed the steps at Reduce repository size).

Hope that explains!

Ana

1 vote
Ana Retamal Atlassian Team Feb 01, 2018

Hi Francisco, I've checked your repositories but I could not find any repo that big. Were you referring to a different account? If so, can you let me know the name of the account and the repo?

Cheers,

Ana

Hi @Ana Retamal, thanks for the quick reply. This is a private repo, so don't know if you may be able to see it: https://bitbucket.org/warrantygroup/sfdc-service-cloud/

Thank you.

Hello @Ana Retamal l am having the same problem. My local folder is 450MB including .git folder but its 2GB on bitbucket therefore l can not push anymore.

Repo ami-mobile

Hi, please run a remote git gc on https://bitbucket.org/Craftnote/mycrafty

count-objects shows 1.26 GiB, but Bitbucket Cloud shows 2.45 GiB

 

Thanks

@Tobias Hornberger I ran into this issue last week and was able to get a faster response by submitting a ticket via https://support.atlassian.com/contact/#/.

Just mark the ticket as Level 3.

Hope you get a response soon.

-D

Thanks, problem fixed itself by making a commit which I guess triggered the remote gc.

Ana Retamal Atlassian Team Oct 04, 2019

Glad it got solved, @Tobias Hornberger

The garbage collection usually gets run automatically although sometimes it might take longer. If you need anything else in the future, lets us know.

Best regards,

Ana

Hello @Ana Retamal ,

Sorry to bother you with that, but could you run the gc on https://bitbucket.org/keemotion/keelab/?

Thanks a lot!

Hello, in Bitbucket shows a size of 1.7 GB  but my repo locally less when I run "git count-objects -v". Am I missing something here? Is Bitbucket Cloud counting something else? I haven't change anything locally and did a git pull.

link to repo — https://bitbucket.org/itcase/erta/

@Ana Retamal 

 

I am facing a similar issue in my private repo https://bitbucket.org/scotneygroup/toca-system/src/b_Dev_3_1/

The settings page says its size is 1.1 GB while `size-pack` of `git count-objects -v`is 463810 KB.

In my case, there had once been a big file in commit history, so I forked the repo to https://bitbucket.org/lalarukh/test-lala/src/b_Dev_3_1/ and rewrote history using BFG following the instructions to see if it helps to reduce the size of the repo.

Now, the settings page of the forked repo says its size is 1.3 GB while `size-pack` of `git count-objects -v` is 434997 KB.

 

I tried to run the git gc but it seems to not work in my case. Can you help me with this?

Ana Retamal Atlassian Team Apr 15, 2019

Hi @LalaRukh_Talha ,

You're seeing different sizes because you're measuring different things (remote repo vs local repo) and they don't always have to match.

Forking the repo will not help, as it will just copy everything from the old repo, including its history (which contains the big file you mentioned above). If you want this file to not be part of the repo, the easiest way would be to delete the image and start a new repository from scratch (initializing git again and uploading it to Bitbucket) so there's no trace from that file.

Running a git gc on the local won't work either, as what you want to reduce is the size of the remote. I've run a git gc on the remote for you and the size has decreased to 215.2 MB.

Hope that helps!

Ana

Like LalaRukh_Talha likes this

Awesome! Thanks for the info @Ana 

Ana Retamal Atlassian Team Apr 26, 2019

Hi Paul, no worries! I've run a a git gc in your remote repo and the size has decreased to 248.3 MB.

Have a nice day,

Ana

Hey @Ana Retamal Ortiz,

Could I also get `git gc` run on our https://bitbucket.org/vosbalance repos?  The one says it's 1.2 gigs, but locally I have `size-pack: 168.69 MiB`.

 

Thanks!!

Hi @Ana Retamal ! I've the same problem, could you please run a git gc on the repository https://bitbucket.org/marcelofrias/bliss ? 

 

How could i run git gc in my repo? Just asking for future. Thanks !

Ana Retamal Atlassian Team Jun 11, 2019

Hi Facundo

I've run the git gc on the remote but the size hasn't changed, it remains as 1.9 GB.

For the future, you could run git gc on your repository using the following command. Note that this will only apply to your local repository, this will not be executed on the remote repository that is hosted in our servers. 

However, that will not magically decrease the size of your repository, you'll need to reduce the size of your repository as explained at Reduce repository size.

Let us know if you have any questions!

Best regards,

Ana

Hi @Ana Retamal , could you take a look on this repo too? It should be much smaller than it is currently shown. It is like that for more than a month after the cleanup.

https://bitbucket.org/gp-gopay/id-ocr

Ana Retamal Atlassian Team Jun 11, 2019

Hi @Miroslav Bartyzal , I've run a git gc on the remote and the size decreased to 8.7 MB. 

Cheers!

Ana

Like Miroslav Bartyzal likes this

Hi @Ana Retamal Ortiz, could you run `git gc` on https://bitbucket.org/alwaysai/edgeiq-models/? I just migrated all the large files to git LFS with BFG but the size listed on Bitbucket is even larger than before!

Could you also run 'git gc' on https://bitbucket.org/alwaysai/edgeiq/? We cleaned that one up a while back and I noticed that the size is still quite large. I wonder if garbage collection will also help on this repo.

Issue was resolved by contacting support.

Hi @Ana Retamal Ortiz,

I have reduced our repo to 26meg  using:

 

$> git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch curator/assets/' --prune-empty --tag-name-filter cat -- --all

 and 

$>git push origin --all --force

and 

$>git push origin --tags --force

Worked great!  But BitBucket still shows 1.6G.

 

Can you please  `git gc`  on    git@bitbucket.org:pkl_wellborn/curator.git   so it will show the updated size?

 

Thanks!

 

Hi, can you please run gc on my repo. Its showing 321 mb locally but i cant push anything as it has reached 2 gb remotely.

https://bitbucket.org/solutelabs/slnewwesbite/

Thank you,

Nishan

Hi @Ana Retamal  or Atlassian Team,

I am also facing the same issue. My code folder is actually around 0.25 GB (size-pack 251487 KB's), but the repository is showing 1.85 GB. 

Could you please help me to resolve this? as after 2GB my repo will become read only mode.

https://bitbucket.org/hiscoxpsg/magic-apps-testauto.git

Thanks,

Logesh

Ana Retamal Atlassian Team Oct 15, 2019

Hi @Logesh Praveen Shunmugavelu

The size of your repository is not only the size of the size pack, it's the total size of the items displayed when you run 

git count-objects

From the official Git documentation:

count: the number of loose objects

size: disk space consumed by loose objects, in KiB (unless -H is specified)

in-pack: the number of in-pack objects

size-pack: disk space consumed by the packs, in KiB (unless -H is specified)

prune-packable: the number of loose objects that are also present in the packs. These objects could be pruned usinggit prune-packed.

garbage: the number of files in object database that are neither valid loose objects nor valid packs

size-garbage: disk space consumed by garbage files, in KiB (unless -H is specified)

As you can see, the rest of the items such as garbage and duplicate objects also counts as part of the repository size.  

I've checked the size of the remote and it's 1GB at the moment. If you still don't think this corresponds to the size of the local repo, please show us the output of git count-objects and we'll continue helping you.

Best regards,

Ana

Hi @Ana Retamal ,

Please find attached the output of git count-objects -vH. As you see below the size-pack is just 231.26 MiB, but not sure why the repository is showing 1.02 GB. Would it be possible to clear garbage and duplicate objects?

Output.PNG

Thanks,

hi @Ana Retamal ,

Any luck with the above mentioned issue?

Thanks.

Ana Retamal Atlassian Team Nov 05, 2019

Hi @Logesh Praveen Shunmugavelu , I've run a git gc on the remote and the size decreased to 212.9 MB. 

Hope that helps!

Ana

Thanks @Ana Retamal . The issue is resolved :)

Ana Retamal Atlassian Team Nov 06, 2019

Glad to hear that! Have a nice day :) 

Hi @Ana Retamal

The size has gone up to 1.07 GB again. Could you please run git gc command against the below repository?

https://bitbucket.org/hiscoxpsg/magic-apps-testauto.git

Thanks

Ana Retamal Atlassian Team Jun 17, 2020

Hi @Logesh Praveen Shunmugavelu , I've run git gc on your repo and the size has decreased to 216.1 MB.

Have a good day :) 

Ana

Hi Atlassian Team,

I have a similar issue: my private repository should be around 145 MiB, while Bitbucket cloud shows 1.54GB.

 

Could you, please, run git gc on https://georgy_guryev@bitbucket.org/georgy_guryev/pfft.git ?

Thanks,

Georgy

I Atlassian Team,

 

Please run git gc on https://balramt_r@bitbucket.org/triedgeteam/triedge_repo.git

 

Thank you

Hi @Ana Retamal ,

 

Please run git gc on https://balramt_r@bitbucket.org/triedgeteam/triedge_repo.git

 

Thank you in advance

Ana Retamal Atlassian Team Sep 18, 2019

Hi @balramt_r ,

I've run the git gc but the size has not changed, it stays at 1.8GB. Can you confirm what's the size of your local repository?

Best regards,

Ana

Like balramt_r likes this

Thank you for your quick response.

 

@Ana Retamal The size of local repository is 821 MB.

Ana Retamal Atlassian Team Sep 19, 2019

Hi @balramt_r ,

I've run git gc again but the size hasn't changed. Can you confirm that you pushed the new reduced repository to the remote? You need to take action on your side first so it will be reflected on the remote. 

Let us know if you need anything else!

Ana

Hi @Ana Retamal ,

Our repository was stating a 1.5GB size via the admin page and we tried deleting two build branches in hopes of purging the commit history and then recreated them. By doing so the repository size jumped up to 1.7GB.

Locally, however, the size is at most 600MB.

Could you run git gc on bitbucket.org:nrfwebmaster/d8.nrf.com.git to see if there is any reduction in the size?

Thank you in advance.

 

-Dan

Ana Retamal Atlassian Team Oct 04, 2019

Hi Dan,

I've checked your repository and I could see that its current size is 96.5 MB, so it seems like the automated git gc run on it already. 

For the future, I'd recommend you submitting a new question, as replying to an already existing (an old) one will reduce the chances of one of us seen it.

Best regards!

Ana

Hello @Ana Retamal , I have the same problem,  could you please take a look at our repository?

https://bitbucket.org/ss26dev/map-coordinates/src/master/

Thank you in advance.

Ana Retamal Atlassian Team Oct 09, 2019

Hi @nena_schmidt

Thanks for reaching out. I've run a git gc on your remote and the size was reduced to 846.2 MB. Is this the same size it's showing on your local?

Best regards,

Ana

Hello @Ana Retamal ,

I have the same problem,  could you please take a look at our repository?

https://bitbucket.org/hiscoxpsg/magic-apps-testauto.git

Current size shows 1.01 GB for some reason.

Thank you!

Good day @Ana Retamal, I have a similar issue with my repo called nafc.

Thank you.

Hi @Ana Retamal ,

 

I have the same problem, could you please take a look at my repo

https://bitbucket.org/chibuike007/nafc.git

Currently shows 1.13GB for some reasons.

Thank you!

Ana Retamal Atlassian Team Nov 06, 2019

Hi @chibuike007 ,

I ran a git gc on your repo and the size decreased to 203.5 MB.

Hope that helps!

Ana

Like chibuike007 likes this

Hello,

 

similar issue here, local repo is less than 1mo but the one on bitbucket is showing 34,7, could you have a look ?

 

thanks in advance

Hi @Ana Retamal ,

 

I have the same problem, could you please take a look at my repo

https://bitbucket.org/chibuike007/nafc.git

Currently shows 2.04GB for some reasons and I cant do any merge, please it is urgent.

Thank you!

Ana Retamal Atlassian Team Nov 26, 2019

Hi @chibuike007, I've run a git gc and the size decreased to 207.2 MB.

have a good day!

Ana

Ana Retamal Atlassian Team Dec 11, 2019

Hi @Ramu Kamath , I've checked your account but it looks like you don't own any repositories. Could you let me know the name of the repo you were referring to so I can have a look?

Regards,

Ana

Hi @Ana Retamal 

1. Can you help us understand why this irregularity occurs in the bitbucket cloud? 
2. Is it possible to do git GC from our end rather than connecting Atlassian every time this issue occurs and how?

Thanks in advance

Regards,

Manjunath

Ana Retamal Atlassian Team Jul 08, 2020

Hi @Manjunath Rajappa,

This is not an irregularity, it is normal that this happens and it's a result of some of the operations Git performs. 

Currently, it's not possible for users to run git gc on remote repos, but you're welcome to contact us anytime you need it. There's also a Feature request that you might be interested, you can find it at Issue 11593 . You can vote for it to increase its popularity or write a comment if there's anything you'd like to add. Our development team will give a first-hand update through that ticket if there's any progress or review made. 

Hope that answers your questions, Manjunath!

Cheers,

Ana

Hi @Ana Retamal / Atlassian Team: Can you please run GC on our business intelligence repository? 

 

Thank you,

Eric

Ana Retamal Atlassian Team Jul 27, 2020

Hi Eric!

I've run GC on the repo and its size has decreased.  

Hope it helps,

Ana

Hey @Ana Retamal can you run GC on my Whale Labs / sonar repo?

 

Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
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,914 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