Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Repository size exceeds limit

Hi, we got that

This repository is over the 2.0 GB limit and your contributors are not able to push new commits. To resolve this, reduce the repository size.

But git count-objects:

count: 0 
size: 0 bytes
in-pack: 78255
packs: 1
size-pack: 981.66 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes


Thanks and regards, Itamar

2 answers

1 accepted

1 vote
Answer accepted

Hi @Itamar Silva ,

I ran a git gc for this repo and its size has been reduced to 990.2 MB.

Please feel free to let me know if things are ok now and if you need anything further.

Kind regards,

Hi @Theodora Boudale ,
The repo went back to above 1gb, almost 2gb.
Could you help me again?

Thanks and regards, Itamar

Hi @Itamar Silva ,

I can see that you have opened a support ticket about this issue as well, another git gc was run by the support team before I got to your reply and the repo's size has been reduced even further.

Have you been rewriting history in the repo and removing files from Git history? If so, that would explain the remote repo's current size being smaller than 981.66 MiB.

Kind regards,

Like Itamar Silva likes this

Hi @Theodora Boudale 

I rewrote history in the repo and removing files from Git history using BFG. I think my problem was solved.

Thanks for all

Hi @Theodora Boudale 
Our repo is over size limit of 4GB, can you run a git gc on one of our repo?



Hi @Jasmine Wang,

Apologies for the late reply, I was on leave last week.

I see that you opened a support ticket and another engineer assisted you with this issue!

In case this occurs again, and to any other users who may come across this post with the same issue:

  • Please create a new question about your issue, instead of replying to this post. This way, in case I'm out of office or on leave, my colleagues will see your question and will be able to assist you sooner (whereas if you leave a reply to someone else's post, my colleagues won't get notified)

  • In case the affected repo is owned by a workspace on Standard or Premium plan, you can alternatively open a support ticket via In "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

Please feel free to let me know if you have any questions!

Kind regards,

Hi @Soumyadeep Mandal
I thanks for help, but the repo doesn't have large files. 

Like Soumyadeep Mandal likes this
Like Itamar Silva likes this

@Soumyadeep Mandal 
Thanks for answer, I think the repo needs remote git gc.

Like Soumyadeep Mandal likes this

Suggest an answer

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,263 views 2 9
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