A branch with a large number of files was accidentally pushed but not merged. Since then, the size of the repository has increased to 3gb. I removed the local and remote branch, but the size of the repository did not decrease. I have already used BFG Repo-Cleaner, but it did not help, the branch size still remains above 3gb.
Hello @Łukasz and welcome to the Community!
After you clean up the repository, it may take some time for the git garbage collection (GC) to run in the backend for the repository and remove the deleted references/objects.
We from support can manually trigger GC on customer requests to cleanup the repo, so you don't need to wait for the automatic GC to be executed.
However, checking internally I see you have already deleted the old repo with size 3GB, and pushed the cleanup repository to a new repository. With this, the new repository is already clean and using only 37MB.
In the future, whenever you need to remove large files/branches from your repository and the size doesn't change immediately in Bitbucket, you can request support for garbage collection :)
Thank you, @Łukasz !
Patrik S
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.