Repository is over the size limit (4 GB) and will not accept further additions.
Asked by Idris AIT MOULAY:

emote: Repository is over the size limit (4 GB) and will not accept further additions.  
remote:  
remote: Learn how to reduce your repository size: <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits>.

To [https://bitbucket.org/\*/\*.git](https://bitbucket.org/*/*.git)  
! \[remote rejected\] master -\> master (pre-receive hook declined)  
error: failed to push some refs to '[https://\*@bitbucket.org/\*/\*.git](https://*@bitbucket.org/*/*.git)'

I can not push due to reaching the sit limit of the repo.  

there same info about repository from my machine.  

\`\`\`  
$ git count-objects -vH  

count: 325  
size: 436.91 MiB  
in-pack: 134094  
packs: 18  
size-pack: 115.64 MiB  
prune-packable: 0  
garbage: 0  
size-garbage: 0 bytes  
\`\`\`  

\`\`\`  
$ du -h {folder}  
...  
...  
671M {folder}  
\`\`\`


Answers:
author: Robert Wen_ReleaseTEAM_
body: Welcome [@Idris AIT MOULAY](/t5/user/viewprofilepage/user-id/5216468)

I'm going to see if I can get the attention from someone at Atlassian.

comments: author: Idris AIT MOULAY
body: Thanks


author: Ben
body: G'day [@Idris AIT MOULAY](/t5/user/viewprofilepage/user-id/5216468) !

I have just executed a gc against the affected repository, this has reduced the repo size from 4.0GB to 65.1MB.

We want to inform you that we do have a Feature request to provide the option to run the GC from the end-user GUI. This way you need not raise a support ticket and wait for the support person to run the GC on your behalf.  

Our Dev team is currently working on implementing the feature request and we don't have any ETA for the fix. I would suggest you "Watch" this ticket for future updates from our Dev team:  
<https://jira.atlassian.com/browse/BCLOUD-11593>

**NOTE:**You and your colleagues will need to perform a fresh clone of the repository, this is to prevent accidentally pushing back old refs which can inflate the repo size again.

Cheers!

- Ben (Bitbucket Cloud Support)


author: Idris AIT MOULAY
body: \[Solved\] thanks


author: Idris AIT MOULAY
body: Hello,  

I have the same right know, would like please to fix it for me ?  

![buckup-recharjme.png](https://community.atlassian.com/t5/image/serverpage/image-id/281282iCD7667FC54E2E1AC/image-size/large?v=v2&px=999 "buckup-recharjme.png")


author: Theodora Boudale
body: Hi Idris,

I ran a git gc for your repo that had a size of 4GB. The repo's size has been reduced.

If you ever need a git gc again, I would suggest creating a new question in community instead of replying here. This way, your new question will be visible to the rest of my team.

Please feel free to let me know if you need anything further.

Kind regards,  
Theodora


author: Happenbox
body: Hi [@Ben](/t5/user/viewprofilepage/user-id/4537226), [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) I'm having same issue:

***remote: Repository is over the size limit (4 GB) and will not accept further additions.***   
***remote:***   
***remote: Learn how to reduce your repository size: <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/#Rewind-history-to-undo-large-commits>.***

Can you help me resolve this please?

Kind regards,

Anthony


author: Theodora Boudale
body: Hi Anthony,

I will reply to the new question you created here: <https://community.atlassian.com/t5/Bitbucket-questions/Rewind-history-to-undo-large-commits/qaq-p/2721208>

Kind regards.  
Theodora


Tags: atl-rvw

bitbucket-cloud

cloud