Extending the repository capacity
Asked by Majed Bawarshi:

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!


Answers:
author: Theodora Boudale
body: Hi [@Majed Bawarshi](/t5/user/viewprofilepage/user-id/4589813) 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:

* <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>

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:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-git-lfs-with-existing-bitbucket-repositories/>

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

* <https://support.atlassian.com/bitbucket-cloud/docs/split-a-repository-in-two/>

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,  
Theodora

comments: author: Majed Bawarshi
body: Hello [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

***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,


author: Theodora Boudale
body: 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 <https://support.atlassian.com/contact/#/> to request a git gc. Otherwise, you can raise your request in community.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud