Hi everyone,
I am looking for assistance with reducing my Bitbucket Cloud repository size. I have recently migrated several large files to Git LFS and performed a full history rewrite using
```git lfs migrate import --include="pipelines/**/data/*.zip" --everything --verbose``` and then ```git push --all --force```
Steps taken:
Rewrote history to convert large files into LFS pointers.
Verified locally that the repository size has decreased significantly i.e. 349mb with
Force-pushed the changes to Bitbucket Cloud.
The Issue:
Despite these steps, the repository size shown in the Bitbucket UI has not decreased. I understand that Bitbucket Cloud may be retaining internal references (such as pull request diffs or auto-merges) that keep the old large objects reachable, preventing the automated garbage collection from pruning them.
Since I am on a Free plan and cannot trigger a manual GC myself, could a Support Engineer please help by:
Identifying and removing internal references to the old, rewritten commits.
Manually running garbage collection (GC) on this repository.
Repository URL: https://bitbucket.org/manualcreator/manualcreator_scripts
I am aware that this process may result in the loss of historical pull request data (diffs/comments) associated with the rewritten commits and I am okay with that.
Thank you for your help!
Hi,
If the repository size is still not reducing after cleanup, it is usually because old Git objects and pull request references are still retained on the Bitbucket server.
In such cases, Atlassian support may need to run a manual garbage collection (GC) on the repository.
You can also verify locally using git count-objects -vH and ensure large files/history were fully removed before requesting support assistance. Hope this helps. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.