Forums

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

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

Gerard Cadenas Montserrat
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!
November 19, 2020

Hello,

I am having a problem with the size of my repo. I have upload a large file but now i cannot delete it.. when i delete from my computer and push i have same error

I have tried all i have found in this community, but still not working

 

My repo is https://bitbucket.org/k20one/quotes-android/src/master/

 

Thanks,

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 20, 2020

Hi Gerard,

When a repo goes over 2 GB, you can follow the steps in the doc that Hana linked, specifically the "Undoing the last push" section, to remove the read-only limitation from the repo.

I went ahead and ran a git gc on this repo and its size went down to 1.5 GB, so you and your team should be able to push now. However, its size is still quite large and it would be a good idea to reduce it further, if possible.

If the increase in size was due to this last commit only with the large file, you can still follow the same steps and reset to the commit before the bad one. Another git gc will be needed after you push that, you can either post here and I can run it, or you can open a support ticket via https://support.atlassian.com/contact/#/ with priority "Level 1" to get a faster response, if your repo goes again over 2 GB and you are blocked from working.

If you have more large files in the repo that do not need to be versioned, you may want to consider removing them from Git history:

In case you need to version any large files, another option would be to move them to Git LFS:

If you face any issues or have any questions, please feel free to let us know.

Kind regards,
Theodora

0 votes
Hana Kučerová
Community Champion
November 19, 2020

Hi @Gerard Cadenas Montserrat ,

please, see this article how to get rid of the commit with the large file. Basically you need to get the remote repository to the state, in which it was before the large commit file.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events