Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,553,368
Community Members
 
Community Events
184
Community Groups

Deleted branches and my bitbucket repositou still over 4GB. What can I do?

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!

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 24, 2022

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

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 24, 2022

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events