After deleting branches, we see no reduction in our repo size? I read that we should run garbage collection, but not sure how, as we can't push changes to the remote repository at all.
Please help!
Hi @michal moshe and welcome to the community.
I checked the repositories your Bitbucket Cloud account has access to, I found one repo over the 4 GB limit and I ran a git gc on it.
Its size has been reduced to 1.5 GB, so you should be able to push to the repo now.
In case you would like to further reduce the repo's size, you can check this post of mine in a different question with more details:
If you decide to proceed with the steps mentioned in that post and rewrite history in the repo with BFG, please keep in mind that the repo's size will get increased again once you push these changes. The repo will then need another git gc for the old commits (prior to history rewrite) to get removed and for the repo's size to get reduced.
You can either let me know here, and I can run another git gc for the repo, or alternatively, since you're on a paid billing plan, you can create a ticket with Bitbucket Cloud support team. You can create a ticket via https://support.atlassian.com/contact/#/, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.
Users cannot run a garbage collection on their remote repos at the moment, this is something support can do. We have a feature request for allowing users to do it themselves: https://jira.atlassian.com/browse/BCLOUD-11593
If you have any questions, please feel free to let me know.
Kind regards,
Theodora
Hi @michal moshe ,
welcome to the Atlassian community!
Here an useful article about how to maintain your repo and manage size https://support.atlassian.com/bitbucket-cloud/docs/maintain-a-git-repository/
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.