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

Repository size exceeds limit - Unable to push latest code

NaveenNayak August 27, 2021

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
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2021

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
AUG Leaders

Atlassian Community Events