Hi,
I'm trying to reduce the size of my Bitbucket Cloud repository
The repository previously contained a large number of JPG files under:
./public/assets
I have optimized the current images and then rewritten the Git history using git filter-repo to remove the old versions of public/assets.
After the history rewrite, I force-pushed the rewritten history to Bitbucket.
Locally, the .git directory is now 147 MB, but Bitbucket still reports the repository size as 735 MB.
It has now been 5 days since the history was rewritten and force-pushed.
I understand that Bitbucket Cloud can retain additional references for historical Pull Requests, which may prevent the old Git objects from being garbage collected.
How can I identify and remove whatever is keeping those old public/assets objects alive so that Bitbucket can reclaim the storage?
I don't want to recreate the repository from scratch because I want to keep the existing Git history.
Thanks.
Hi @PepoCivs,
Welcome to Atlassian Community!
I have notified the support team that is on here and they will reach out to you within 2 business days. A garbage collection needs to be run on the back end in order to change the repository size.
Hey @PepoCivs
Welcome to the community.
I have triggered Git GC on the affected repository as requested. The size has been reduced accordingly. Please review and confirm with me whether this is the expected size.
Regards,
Syahrul
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.