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.


Suddenly, I can not push to repo anymore.

Tried many ways on the below link :


But still can not push anymore.

The repo over 2G is this

Could you help ??


2 answers

0 votes
Mike Howells Atlassian Team Jan 10, 2020

For others experiencing this, please follow the guide mentioned in the error message. It has instructions on how to reduce the repository size below the 2GB limit, and how to optimise repository size in general.

Done so, however I still cannot push the mirror of the repo that I have decreased to 27MiB.

How do we run GC or push the updated history?

0 votes
Ana Retamal Atlassian Team Sep 10, 2019

Hi Bryan,

When the repository exceeds the 2GB max size, it enters the read-only mode. I've run a garbage collection on it but the size remains at 4GB. Can you confirm that the local size is under 2GB? Have you tried to force push?

Let us know!


Thank you, Ana.


I tried to use BFG to clean my repo.


After that , I check each branch and manually delete some big files.

However, I still failed to push the change to remote repo.

What should I do next to get back to normal ?

I did tried --force push , but still failed.

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,734 views 10 16
Read article

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