Dears,
I just wanted to ask why the repository size is still the same (1.8 GB) even after we removed a lot of large files which are of size 600 MB or even larger.
We have deleted all unused branches as well.
The actual code size without large files that were removed is about 24MB.
Please advice if there is any way to reduce the size of the repository.
Hi Dina! Sometimes it takes some time for the garbage collection to run in the remote, so that's the reason why you won't see any changes in size. I've checked your Bitbucket Cloud account but I couldn't find any repos there. If you let me know the affected username and repo name I can run a garbage collection for you.
Looking forward to your response!
Cheers,
Ana
Hello Ana ,
Thank you for your response you can check the repo from here
https://bitbucket.org/mobiledoctors/ios
and the user name is DinaHussieny
Regards,
Dina Hussieny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ana,
I am waiting your response hope to hear from you the soonest.
Regards,
Dina Hussieny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ana & Dina
I am facing a simular issue. My repository reached 1.9GB so I followed the instructions here:
https://confluence.atlassian.com/bitbucket/reduce-repository-size-321848262.html
I did it in two steps. First I managed to reduce it to 1.4GB. That's at least what I could see locally using the commands
git count-objects -v
and
du -hs .git/objects
But strangely enough, when looking at the repository size on the Bitbucket website, I see double size: 2.8GB!!!
Then in a second step I managed to reduce the size locally to 600MB. I tried to push and it failed because it says I exceeded 2GB.
What should I do here ? Wait for Bitbucket to do its garbage collection and try again, or is there something more serious here ?
The repository name is
https://michaelstv@bitbucket.org/smartertv/stv.git
But it is a private repo.
It is kind of urgent because we are stuck now, unable to push anything. Thanks!
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ana,
When will you be available to supporting us in solving this issue ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dina Husseiny, we've run a gc on the remote repo and the size is ~1.8GB, the output is:
$ git count-objects -Hv
count: 0
size: 0 bytes
in-pack: 39645 packs: 1
size-pack: 1.76 GiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
You mentioned in your initial comment that the size of your local repo is now 24 MB, can you try now pushing that one so everything you removed locally will be reflected in the remote? The instructions can be found at Reduce repository size.
Let us know if you have any questions!
Regards,
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @michaelstv, after running a git gc on your repo, it's now showing a size of ~1.3GB , this is the output:
$ git count-objects -Hv
count: 0
size: 0
bytes in-pack: 72637
packs: 1
size-pack: 1.33 GiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
Can you try pushing now the reduced repository? If you need any further assistance, let us know :)
Regards,
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.