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.
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?
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!
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?
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 :)
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!
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.
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.
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!
Hi @Ana Retamal
Could you run a git gc on our team's repo :
The repository size is showing around 1.5 Gb on the cloud but I just pulled it on my machine and it's actually much smaller than this.
Could this be done asap?
Thanks a lot,
Hi @Ana Retamal
Could you run a git gc on our team's repo : https://bitbucket.org/bzkka/resumes-analytics/src/master/
The repository size is showing 2.02 Gb on the cloud but I just pulled it on my machine and it's actually much smaller than this (304Mb).
Could this be done asap as the repo is now locked for pushes?
Thanks a lot,
Hi Vincent, welcome to the Community :)
I've checked your repo and I could see that the size now is 435.0 MB. Whether it was the automated gc or one of my colleagues, looks like the issue is solved, so you should be able to push.
If you still need any assistance, let us know and we'll be happy to help.
Hello @Ana Retamal ,
Could you please run the remote git gc on two of my repositories:
Both of these are showing up as under 400MB locally but on bitbucket they are showing up as 1GB+
Thanks in advance
@Ana Retamal Hi Ana, same problem with one of my repos here, local size is far below 1GB, reported size on bitbucket 1.56GB. Could you please also run a `git gc` there?
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.
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
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