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

Viewing page 2 of 3

52 answers

1 accepted

0 votes
Omar Abdelhameed Ayala February 13, 2020

Hi @Ana Retamal . I have a similar problem. BitBucket says the repo's size is 1.6 Gb but if I clone it the size is not more than 350 Mb. Could you please perform and git gc on my repository ? https://bitbucket.org/traffgen/rhprohost/src/master/

Also is there any way to perform it remotely? As far as I know this is not possible. Thx.

0 votes
Deleted user February 7, 2020

Hi, I have same issue here https://bitbucket.org/Liikennevirta/ios it is approaching 2GB limit, local copy size is under 1GB, could you please try gc on it ?

0 votes
sanchit goel February 7, 2020

@Ana Retamal 
Hey!
Can you please help me by reducing the size of the repo on remote

https://bitbucket.org/dhruv-grappus/ios-influencer-connect/src

my repo locally is showing 302187 KB when I run "git count-objects -v"

Hope for an early reply,
Thanks

0 votes
wheelerruss February 6, 2020

Hi @Ana Retamal , seeing as this ticket seems to say your job is just running git gc on repos, due to it not updating on bitbucket properly, could you run it on mine please?

https://bitbucket.org/wheelerruss/wordsy/

Thanks

wheelerruss February 6, 2020

(hopefully that was obvious that it was tongue in cheek, and it's very much appreciated!)

wheelerruss February 7, 2020
0 votes
Akshaykumar Sharma January 28, 2020

Hi @Ana Retamal , 

I am facing same issue with my repository. can you please run GC from your end.

https://bitbucket.org/ptcinc/sfdcdevops/

 

Thanks,
Akshay

0 votes
Hayden Wheeler January 27, 2020

Hello @Ana Retamal,

Sorry to add to your list aha, but I'm also having this problem with this repo: https://bitbucket.org/neuromersiv/neuromersiv-vr

Local object count reports size as 183MB, but the repo still says 1.6GB, I've given it a couple days to see if it'd automatically run the GC, but so far nothing has changed.

Thanks!

0 votes
Deleted user December 19, 2019

Hi @Ana Retamal,

could you please try and decrease the size of the following repo?

https://bitbucket.org/data-lens/unstructured-lens

Thanks!

Deleted user January 3, 2020

The problem was solved by a kind colleague of yours after I opened a ticket at https://support.atlassian.com/contact.

Regards,
Tommaso

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 3, 2020

Hi @[deleted] , I've been on holiday so I didn't see your message.

I'm glad it's solved now! 

Best regards,

Ana

marvrusALL March 31, 2020

@Ana Retamal 

Hi! same issue here! could you please take a look at my repo??

https://bitbucket.org/marvrus_foriegn/speakit_story/src/master/

Thanks.

alempel May 19, 2021

Hi,

  Could you please run gc in this repo?.

bitbucket.org/grexor/grupo-familia-wilde-l41-encajonadora

 

thanks very much

0 votes
Ramu Kamath December 2, 2019
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 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

Manjunath Rajappa July 7, 2020

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
Atlassian Team members are employees working across the company in a wide variety of roles.
July 8, 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

Eric Crowe July 26, 2020

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

 

Thank you,

Eric

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2020

Hi Eric!

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

Hope it helps,

Ana

francisco_madeira September 16, 2020

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

 

Thanks.

matteup November 4, 2020

@Ana Retamal 

Hi Anna,

 

Can you please run gc on this repo?

https://bitbucket.org/goodbarber/ios_engine/

yungarium January 8, 2021

Hello,

we are also experiencing a similar issue with repo:
https://bitbucket.org/_tensei/sbertech

The local size-pack is about 0.4GB repo shows size of 1.9GB.

Thanks in advance!

0 votes
chibuike007 November 7, 2019

  @Ana Retamal Thanks

chibuike007 November 25, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2019

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

have a good day!

Ana

chibuike007 November 26, 2019

Thanks a lot @Ana Retamal 

0 votes
chibuike007 November 1, 2019

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

Thank you.

chibuike007 November 4, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 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
Philippe Blavier November 6, 2019

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

0 votes
Logesh Praveen Shunmugavelu October 15, 2019

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!

0 votes
nena_schmidt October 9, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
October 9, 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

0 votes
Daniel Crowder September 27, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
October 4, 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

0 votes
triedge_s September 18, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
September 18, 2019

Hi @triedge_s ,

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 triedge_s likes this
triedge_s September 18, 2019

Thank you for your quick response.

 

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

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 19, 2019

Hi @triedge_s ,

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

0 votes
triedge_s September 18, 2019

I Atlassian Team,

 

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

 

Thank you

0 votes
georgy_guryev July 17, 2019

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

0 votes
Logesh Praveen Shunmugavelu July 10, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
October 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

Logesh Praveen Shunmugavelu November 1, 2019

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,

Logesh Praveen Shunmugavelu November 4, 2019

hi @Ana Retamal ,

Any luck with the above mentioned issue?

Thanks.

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 5, 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

Logesh Praveen Shunmugavelu November 5, 2019

Thanks @Ana Retamal . The issue is resolved :)

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 2019

Glad to hear that! Have a nice day :) 

Logesh Praveen Shunmugavelu June 16, 2020

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
Atlassian Team members are employees working across the company in a wide variety of roles.
June 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

booji December 26, 2020

Hi @Ana Retamal 

I am experiencing similar issues, tried reducing size, but still says 2gb.

can you please run GC on both repos

https://bitbucket.org/boojiadmin/booji-fe

https://bitbucket.org/boojiadmin/booji-fe-2gb

 

much appreciated

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 29, 2020

Hi @booji, thanks for reaching out :) 

I've checked the first repo and looks like the git gc must have run automatically, as the size shows 3.9 MB on disk.

Regarding the second repository, I've run the git gc and the size has decreased to 740.4 MB.

Hope that helps! If you need anything else in the future let us know.

Best regards,

Ana 

MCSAEP March 27, 2022

Hi,

I need help to run the git gc on our 3 remote repos stored in my bitbucket cloud because I already did all the steps to reduce locally the size but not it has not synced in the cloud. I need a cleanup on a repos and any help is welcome, Thanks.

0 votes
Nishan Bende July 3, 2019

 

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

0 votes
pkl_wellborn July 2, 2019

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!

0 votes
Christopher Paterson June 27, 2019

Issue was resolved by contacting support.

0 votes
ericvanbuhler June 26, 2019

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!

ericvanbuhler June 26, 2019

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.

0 votes
Miroslav Bartyzal June 11, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
June 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
0 votes
fjmolina June 4, 2019

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
Atlassian Team members are employees working across the company in a wide variety of roles.
June 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

0 votes
Neexcorp April 25, 2019

Hi, sorry to jump on the gc wagon https://bitbucket.org/iagreejira/beta

@Ana Retamal 

thanks!

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 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

gplocke May 31, 2019

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!!

0 votes
LalaRukh Talha April 14, 2019

@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
Atlassian Team members are employees working across the company in a wide variety of roles.
April 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
LalaRukh Talha April 15, 2019

Awesome! Thanks for the info @Ana 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events