Forums

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

Bitbucket Cloud repo “Size” not decreasing after history rewrite (mirror clone is tiny)

solssi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2026

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:

  • Repo A (Android): UI still shows ~286 MB
  • Repo B (iOS): UI still shows ~356 MB

What I observe from Git (from Bitbucket itself)

If I do a fresh mirror clone from Bitbucket, both repos are very small:

 

git clone --mirror <bitbucket_repo_ssh_or_https_url>
du -sh <mirror_repo_dir>
# Repo A ~1.2MB
# Repo B ~300KB

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.

Question

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!

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 29, 2026

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:

  • 286MB > 1.3MB
  • 356MB > 237KB

Cheers!

- Ben (Bitbucket Cloud Support)

solssi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 30, 2026

Thanks for the quick response and support. Everything looks right now. heart

Suggest an answer

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

Atlassian Community Events