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 August 13, 2023


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:

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,

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?



Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events