Hello
We have pruned our repository (<redacted>) and the size of the repo is still showing 1.1gb on BB.
When downloading the repo, it is only 250mb.
Could you please run garbage collection on <redacted> under
https://bitbucket.org/<redacted>/workspace/overview/
thank you
G'day, @Syvent
Welcome to the community.
I have triggered GC on the affected repository, and the size has been reduced to 700+ MB. I understand that you've verified that when you cloned, the size was only around 250MB; is that correct?
Regards,
Syahrul
Hello Syahrul, thank you for your help
I do see the repo size reported is down to 700mb from 1.1gb
but it is still a much smaller size when I download the repo from
https://bitbucket.org/<workspace-id>/<repo>/downloads/
The download extracts to just 253mb.
When I cloned the repo into a temp folder, the size was only 361mb.
I'm trying to get this as small as possible to stay safe before the 1gb workspace limitation is active.
Thanks again for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Syvent,
The zip from the Downloads page of the repo will contain only the source code of the repo on the repo's main branch. It does not include the Git history on this branch nor the source code and commit history on other branches.
Additionally, cloning the repo will only bring locally the repo's main branch (unless you fetch and pull all the other branches locally after the clone).
The difference in size could occur either because of the above, or because of PRs still referencing any files you may have removed from the repo's history.
I suggest doing the following, so we can narrow down which of the two is the case:
1. Take a mirror clone of the repo with the command
git clone --mirror <repo_url_here>
This will clone an exact copy of the remote repo with all branches and without a working directory.
2. Then, navigate to the directory of the mirror clone and run the command
git count-objects -Hv
What is the full output you get from this command?
Please also let us know if by "pruned", you mean that you rewrote history on the repo to remove certain files from history.
Just a heads up, I removed the repo details from your post to protect your privacy.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Theodora,
Thank you for your reply.
We rewrote history on the repo to remove files to try and reduce. Sorry to use the word "prune" in my description.
I just issues the two commands you suggested (masked some characters below with ## for security)
git clone --mirror https://msimon@bitbucket.org/#####/##ca.git
Cloning into bare repository '##ca.git'...
remote: Enumerating objects: 14848, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 14848 (delta 0), reused 0 (delta 0), pack-reused 14847 (from 1)
Receiving objects: 100% (14848/14848), 154.76 MiB | 16.41 MiB/s, done.
Resolving deltas: 100% (2857/2857), done.
git count-objects -Hv
count: 0
size: 0 bytes
in-pack: 14848
packs: 1
size-pack: 155.16 MiB
prune-packable: 0
garbage: 0
the temporary repo clone is only 155mb, and does not have the full source code included, not sure if that is expected or not.
thank you for any feedback.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Syvent ! I'm sending notification to Atlassian Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not if you're on the free plan. If you're on Standard or Premium, you could put in a Support ticket.
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.