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
4,295,958
Community Members
 
Community Events
165
Community Groups

Repository size exceeds limit - Unable to push latest code

Edited

Hello,

after Repository size exceeds limit, I have made undo the last commit. And it was done successfully.

But Still my repository shows the error 

```

Repository size exceeds limit

This repository is over the 4 GB limit and your contributors are not able to push new commits. To resolve this, reduce the repository size.
```
The commit was deleted from branch still the size wasn't decreased
Please help me to reduce the repository size.

I have followed the document to undo the last commit is: https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/

1 answer

1 accepted

0 votes
Answer accepted

Hi @NaveenNayak,

In order for a git gc to run when you undo the last commit, it is necessary to have the Labs feature "Delete dangling commits when over size limit" enabled (for the user that does the push). I can see in our system that this is disabled for your Bitbucket account (you can enable it here, in case you ever need to perform this action again: https://bitbucket.org/account/settings/features/).

I checked the repos your account has access to, and I saw one of them that was over the size limit. I went ahead and ran a git gc for it, and its size is now 1.2 GB. Does this agree with the size of your local repo?

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

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
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,170 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