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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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


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



2 answers

0 votes
Hana Kučerová Community Leader Nov 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.

0 votes

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

Suggest an answer

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

Share your use cases: How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features to how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your tea...

36 views 0 1
Join discussion

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