Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Repository size

Koman Chik April 19, 2025

Hello. Like others, we received the 1GB email. We've cleaned things up and removed branches, but the repository size has rather increased. Please run trash collection. Thanks!

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2025

Hi Koman,

I see that one of the workspaces you have access to is over the 1 GB limit we are going to enforce. I ran a git gc on the largest repository on this workspace, but its size hasn't been reduced by a lot.

Could you please let me know the following:

1. Did you rewrite history to clean up the repo?

2. Please take a mirror clone of the repo with the command

git clone --mirror <repo_url>

Then, navigate to the directory of the mirror clone and run the command

git count-objects -Hv

What output do you get from this last command?

I am asking this to understand if the repo size on Bitbucket is because of the objects on the core Git repo or because of something else, like PR refs.

Kind regards,
Theodora

Koman Chik April 22, 2025

Thanks for following up!

I have run the command you provided, here's the output.

```
count: 0

size: 0 bytes

in-pack: 11490

packs: 1

size-pack: 345.47 MiB

prune-packable: 0

garbage: 0

size-garbage: 0 bytes
```

I am not sure if it's caused by PR refs, if anything related to PR, could you please help / provide a way to delete them? (Now it can only be declined.)

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2025

Hi Koman,

Thank you for your reply.

Since the size of the mirror clone is much smaller than what Bitbucket reports, the most likely reason is that the files you cleaned are still referenced by PRs.

I created a support ticket on your behalf so that a colleague of mine provides you with a list of PRs that have large files and asks for your permission to delete them. You should have received an email with a link to the ticket, and you can also find the ticket here:

One of my colleagues will reach out via the support ticket.

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

Kind regards,
Theodora

0 votes
Carlos Garcia Navarro
Community Champion
April 19, 2025
Koman Chik April 19, 2025

Hi @Carlos Garcia Navarro

Thanks for the arrangement!

I have read them and make sure that all PRs are declined, I didn't find a way to delete them, all I can do is to decline.

If it's required to ask for permission to delete all declined PRs, feel free to delete it.

Will wait for the support team to see if anything I can solve the problem.

Suggest an answer

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

Atlassian Community Events