The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Repository size is not recalculation even after I cleaned all big files from git history?

Vakildesk Technologies
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 17, 2025

I’ve cleaned the Git history using `git filter-repo`, removed all large files, and force-pushed all branches and tags.

The `.git` folder is now much smaller, but Bitbucket still shows the repo as 2.3GB.

How does this repository size gets updated?

Thanks!

2 answers

2 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

Hi @Vakildesk Technologies and welcome to the community!

A garbage collection runs automatically on every push, but with different parameters every time depending on many different conditions. If the automated git gc does not clean up your repo, you can always create a question in community and ask that we run it for your repo manually.

I ran a git gc for your repo that had a size of 2.3 GB and its size has been reduced. Does it look ok now on your end?

Kind regards,
Theodora

0 votes
Answer accepted
Sarp Egemen
Community Champion
April 17, 2025

Hi @Vakildesk Technologies ,
As far as I know, once the objects are unreachable, garbage collection will run automatically. It might not be immediate and could take some time, depending on the internal dynamics of Bitbucket. If you need immediate garbage collection, I believe Atlassian support can help you with that and run it manually.

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events