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

Repository is over the size limit (4 GB) and will not accept further additions.

John Nicole Calbitaza
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!
August 13, 2023

Hi

I had several big files and had many many revisions of those files checked in. I guess that led to the Repository is over the size limit (4 GB) and will not accept further additions warning.

I've deleted all big files in local and when I tried to push, I am getting a warning

2 answers

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2023

Hi @John Nicole Calbitaza and welcome to the community.

I ran a git gc for the repository that is over the size limit, however, its size has not been reduced.

When a repo goes over the size limit, the only thing that you can push is a git reset that will bring the repo's size below the limit. You can read more details here:

New commits cannot be pushed at this point (even if it is commits with file deletions or a history rewrite).

After you follow these steps to undo the last push, the repo's size should go below the limit, you can look into reducing it further.

Please keep in mind that committing file deletions will not affect the repo size. You would need to rewrite history in order to either remove these files from history or move them to LFS. You can read more details in this post of mine:

https://community.atlassian.com/t5/Bitbucket-questions/Revert-bitbucket-repository-state-to-one-day-prior/qaq-p/1908360#M76762

If you rewrite history and push, the remote repo will need a git gc that can only be done by Atlassian team. You can create a new question in community and we can then run it for your repo.

Please feel free to reach out if you have any questions!

Kind regards,
Theodora

1 vote
Harald Seyr
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2023

Hi @John Nicole Calbitaza 

welcome to the community!

Did you check the recommendations on Reduce repository size | Bitbucket Cloud | Atlassian Support?

Regards,

Harald

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events