Forums

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

Repository size remains 735 MB after rewriting Git history

PepoCivs
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!
August 10, 2026

Hi,

I'm trying to reduce the size of my Bitbucket Cloud repository

The repository previously contained a large number of JPG files under:

./public/assets

I have optimized the current images and then rewritten the Git history using git filter-repo to remove the old versions of public/assets.

After the history rewrite, I force-pushed the rewritten history to Bitbucket.

Locally, the .git directory is now 147 MB, but Bitbucket still reports the repository size as 735 MB.

It has now been 5 days since the history was rewritten and force-pushed.

I understand that Bitbucket Cloud can retain additional references for historical Pull Requests, which may prevent the old Git objects from being garbage collected.

How can I identify and remove whatever is keeping those old public/assets objects alive so that Bitbucket can reclaim the storage?

I don't want to recreate the repository from scratch because I want to keep the existing Git history.

Thanks.

2 answers

1 vote
Mikael Sandberg
Community Champion
August 10, 2026

Hi @PepoCivs,

Welcome to Atlassian Community!

I have notified the support team that is on here and they will reach out to you within 2 business days. A garbage collection needs to be run on the back end in order to change the repository size. 

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 11, 2026

Hey @PepoCivs 

Welcome to the community.

I have triggered Git GC on the affected repository as requested. The size has been reduced accordingly. Please review and confirm with me whether this is the expected size.

Regards,
Syahrul

Suggest an answer

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

Atlassian Community Events