My repository was about to hit the 2.0GiB limit, so I ran BFG as suggested by Atlassian's docs but the repo size went to 2.26GiB, despite it only being less than a quarter of that size.
Running git count-objects -Hv shows the following:
size: 0 bytes
size-pack: 348.77 MiB
size-garbage: 0 bytes
What can I do to have the GC run on my repo?
Hi @Nahuel ,
I see that you opened a support ticket for this issue and one of the engineers ran a git gc on your repo and its size has been reduced.
I just wanted to add a note here, also for any other users who may come across your post: if you rewrite history and push to Bitbucket, the size of the remote repo will get increased. This is because the remote repo will contain both new references and old references (prior to history rewriting). A git gc is needed on the remote repo to have the old references removed and then the repo's size will get reduced.
If we have the repo URL , we can trigger a git gc. If you don't feel comfortable sharing it here, a ticket can be opened with the support team via https://support.atlassian.com/contact/#/. In "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.
A git gc on the remote repo can be triggered by the support team at the moment, we have a feature request to allow users to do so as well:
Please feel free to let us know if you need anything further.
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events