Hi Atlassian team,
I’m on the Free plan (no support ticket access) and I’m trying to reduce the repository size shown in Bitbucket Cloud.
I rewrote history locally to remove generated/build artifacts and then force-pushed the rewritten history to Bitbucket. However, Bitbucket still shows the old large size in the Workspace → Repositories list (Size column), even after waiting.
I have two private repositories affected:
If I do a fresh mirror clone from Bitbucket, both repos are very small:
And git count-objects -vH on the mirror clones shows a tiny size-pack (hundreds of KB to ~1MB).
I also checked for hidden refs / PR refs and I don’t see any refs.
Since the mirror clones are already small, is this a stale/cached “Size” metric in Bitbucket Cloud?
Can someone from the Bitbucket team please run a server-side git gc / repack (or otherwise refresh the repo size metric), or advise what else can keep the “Size” value high even when mirror clones are tiny?
I can share the repo links/workspace name privately if an Atlassian staff member needs them.
Thanks!
Hi @solssi
It appears the automated gc process did not execute as your repositories had not yet hit the garbage threshhold.
I've gone ahead and executed it manually from my end, and it has reduced the sizes as follows:
Cheers!
- Ben (Bitbucket Cloud Support)
Thanks for the quick response and support. Everything looks right now. ![]()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.