Forums

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

Request: server-side garbage collection after history rewrite (workspace alexionsoftware)

AnToine van Maarle
Contributor
September 8, 2026

We are on a Free plan workspace (alexionsoftware) that is close to the 1 GB limit, and we have been cleaning up. After the cleanup we see a large gap between what a fresh clone contains and what Bitbucket reports as the repository size, which as far as we understand means server-side garbage collection is needed.

Since Free plan workspaces cannot open a support ticket, I am posting here as suggested in similar threads.

What we did

Today we rewrote the history of the misc repository with git filter-repo, removing four directories that had not been used since 2020–2022, and we deleted two leftover refs/svn/* references from an old SVN migration. The rewritten history has been force-pushed and the repository now has a single branch.

What we measured

For each repository below, "fresh clone" means a git clone --mirror straight from Bitbucket, with every object repacked in one pass:

RepositoryFresh clone, fully repackedReported by Bitbucket
misc10.9 MB157.4 MB
maatwerk26.7 MB93.2 MB
alexion-crm198.3 MB314.3 MB

On the Git LFS side, we compared the pointers before and after the rewrite of misc: it went from 247 pointers referencing 227.7 MB to 181 pointers referencing 148.4 MB. So 66 LFS objects totalling roughly 79 MB are no longer referenced by any branch or tag.

What happened after the force-push

This is the part that made us post. The rewrite itself landed correctly — a fresh clone of misc has an 11 MB .git/objects directory and none of the removed directories appear anywhere in its history. But the size Bitbucket reports for the repository did not go down:

miscSize
Before the rewrite157.4 MB
After the force-push168 MB
A fresh clone, fully repacked10.9 MB

It went up by roughly the size of the pack we pushed, which we read as: the pre-rewrite objects are all still being stored and counted alongside the new ones. That is understandable, but it does mean the cleanup currently costs us storage instead of saving it, and we have paused any further cleanup until we know it can actually be reclaimed.

What we would like to ask

1. Could you run server-side garbage collection on misc, maatwerk and alexion-crm in the alexionsoftware workspace? For misc this covers both the rewritten Git history and the unreferenced LFS objects.

2. Are closed pull requests holding on to objects here? I read in your documentation that support can confirm which pull requests need to be deleted to free storage. If that applies to these repositories, could you tell us which ones, so we can clean them up ourselves?

3. Is the gap above the expected behaviour? We would like to understand whether the difference between a fresh clone and the reported size is normal packing overhead, or whether it points at something we should be doing differently. It varies quite a bit per repository (1.2x, 3.5x and 1.6x), which we cannot explain from our side.

4. How long does reclaiming normally take? We have more cleanup we would like to do — another repository with unused branches and old migration references — but after seeing the size go up rather than down, we would rather wait until we know the space comes back. Knowing roughly what to expect would help us plan.

Happy to provide anything else that helps. Thanks in advance.

2 answers

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 9, 2026

Hi @AnToine van Maarle

Thank you for reaching out to the community.

I've run Git GC against those repositories and they're now reduced in size.

The workspace total size is now  529.3 MB.

Regards,
Mark C

0 votes
Arkadiusz Wroblewski
Community Champion
September 8, 2026

Hello @AnToine van Maarle 

I requested assistance. An Atlassian team member will respond within two business days.

Best,

Arek🤠

Suggest an answer

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

Atlassian Community Events