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
Community Members
Community Events
Community Groups

Extending the repository capacity

I am wondering if I could make my bitbucket repo capacity bigger than 4GB, please give me a way to expand it regularly.

What I really want is to expand the repository without using LTS, because I need the full repository to have the extra space rather than specifying a folder to share on LTS. 

I have been thinking to create a new repo and make it extending the previous repo history but I am not sure if such a solution exists.

or creating multiple Repos for the large subdirectories to make a tree-alike repositories distribution. but I think it is a silly solution as well.

May you enlighting me for a better way or run a git gc on my repo, please!

1 answer

1 accepted

1 vote
Answer accepted

Hi @Majed Bawarshi and welcome to the community.

I checked in our system the repositories your Bitbucket Cloud account has access to and I found one repo with a size close to the 4 GB limit. I ran a git gc on it and its size is now 302.9 MB.

Bitbucket Cloud repositories have a 4.0 GB limit, I'm afraid that we cannot increase this limit. The repository limit for free repositories is 2 GB; however, at this time, we are not enforcing this limitation. Note that both enforcement of the limit and the limit itself are subject to change in the future. See for reference:

I am not sure what you mean by LTS, are you perhaps referring to Git LFS?

If you version in your repository large or binary files, our recommendation would be to use Git LFS as this will also speed up the handling of large files. Git LFS was designed specifically for this reason:

You could also split the repository into two or more repos:

However, if you version large or binary files without using Git LFS in these repos, you may still see their size get increased fast and notice slow cloning/pulling times as well.

If you have any questions, please feel free to let me know.

Kind regards,

Hello @Theodora Boudale 

Thank you very much for your support, You are a lifesaver!

May you please guide me about the steps I should follow next time I face the same issue?

regarding the LTS yes, you are right I meant Git LFS


Thank you again!

Best regards,

Like Theodora Boudale likes this

Hi Majed,

You are very welcome, I'm glad to have helped!

If you'd like Atlassian to run a git gc on your repo, you can create a new question in community to request this (there is an automated git gc running on every push, but it runs with different parameters than the git gc I triggered manually).

If the repo belongs to a workspace on a paid billing plan, you can also create a ticket with the support team via to request a git gc. Otherwise, you can raise your request in community.

Kind regards,

Like Majed Bawarshi likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,263 views 2 9
Read article

Community Events

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

Events near you