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?

Sonam Yadav
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

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 @Sonam Yadav 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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2025

Hi @Sonam Yadav ,
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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events