Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Repository size exceeds limit

Jérémy Macouin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2025

Hello everyone,

Our repository has exceeded the 4GB limit on Bitbucket, and as a result, we are currently blocked.

Three weeks ago, we used the BFG tool to reduce the repository size. Locally, the repository is now only 377 MiB. Interestingly, when we clone the project as a fresh repository, it also shows a size of 377 MiB so we don’t understand why Bitbucket still considers it over 4GB.

Could someone please advise what we might be missing or how we can resolve this issue?

Many thanks,

2 answers

1 accepted

2 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2025

Hi Jérémy and welcome to the community!

If you rewrite history in a repo and push to Bitbucket, a garbage collection needs to run on the remote repo to remove the old dangling commits. There is a git gc that runs automatically on every push, but with different parameters depending on many different conditions.

If the automated git gc doesn't clean up your repo, you can always create a question in community and ask that we run it. Since your workspace is on a paid billing plan, you can also create a ticket with the support team via https://support.atlassian.com/contact/#/.

I ran a git gc on the repo of yours that had a size of 4 GB, and the repo's size has been reduced.

Does it look ok now on your end?

Kind regards,
Theodora

Jérémy Macouin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 16, 2025

Hi Theodora,

Thank you so much for yout help !

Everything looks good and i've taken note of your eplanations regarding the git garbage collection process.

Really appreciate your quick action and support!

Best regards,

J.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2025

You are very welcome, Jérémy!

Please feel free to reach out if you ever need anything else!

Kind regards,
Theodora

1 vote
Mikael Sandberg
Community Champion
April 16, 2025

Hi @Jérémy Macouin

Welcome to Atlassian Community!

Atlassian support that is on here has been notified and will get back to you within 2 business days regarding this.

Suggest an answer

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

Atlassian Community Events