Repository is over the size limit (4 GB) and will not accept further additions.

Idris AIT MOULAY May 10, 2023

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
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '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}
```

1 answer

1 accepted

0 votes
Answer accepted
Robert Wen_Cprime_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 10, 2023

Welcome @Idris AIT MOULAY 

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

Idris AIT MOULAY May 10, 2023

Thanks

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 10, 2023

G'day @Idris AIT MOULAY !

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)

Idris AIT MOULAY May 11, 2023

[Solved] thanks

Idris AIT MOULAY September 18, 2023

Hello,

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

buckup-recharjme.png

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 20, 2023

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

Like Robert Wen_Cprime_ likes this
Happenbox June 7, 2024

Hi @Ben@Theodora Boudale  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

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 10, 2024

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

Like Happenbox likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events