Hello,
Today I started receiving the message that the size of the workload goes over the free limit of 1gb and I should reduce it to be able to commit new things.
I looked at the repos and they don't exceed 1gb, the three together are at 925MB. Anyhow, I looked into the repos and one of those has a big file which was commited by mistake. I now want to delete the remote file since I already did it locally and the size of the repo is 260MB.
git count-objects -Hv
count: 112
size: 500.00 KiB
in-pack: 1121
packs: 1
size-pack: 262.12 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
I currently can't push the changes because of the read-only restriction and I believe the solution to reducing the size is for me to delete the file and then for GC to be run on the repo.
How can I do that?
Thanks in advance!
Best regards
Monika
Hi Monika,
Does this issue concern the Bitbucket Cloud account that has the same email address as the community account you used to make this post?
If so, this account has access to one workspace. You have access only to a certain number of repos on this workspace, the total storage used by this workspace is more than 1 GB.
However, I can see in our system that the workspace admin has resolved the issue so you should be able to push your changes now. Please keep in mind that if you rewrite history in a repo and push it to Bitbucket, the remote repo will need a garbage collection for the older commits to get removed and for the new size to be reflected. If you push a history rewrite to a repo, please feel free to leave a comment here and let me know the first and last letter of the repo name, and I can run a garbage collection for that repo.
Kind regards,
Theodora
Hello Theodora,
Yes it is the same account.
I did remove the file in question from all branches. Should I do anything else before you run the GC?
If that's all then please run the GC for the repo starting on d and ending on s.
Thank you!
Best regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Monika,
Thank you for the update.
If you removed the file from history (instead of committing a file deletion), this should be enough and you don't need to do anything else.
I ran a garbage collection on this repo and its size has been reduced quite a lot.
As a repo admin, you can see the updated size from the repo's Repository settings > Repository details.
Please feel free to reach out if you need anything else!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.