Forums

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

Repo size on BitBucket increased after I locally reduced it with git filter-branch

fetchdesigns March 24, 2025

I was trying to reduce the size of my repo after finding a large file that had been accidentally committed a number of years ago and then removed (but it still existed in the history).  I ran a git `filter-branch` and have removed the offending file completely and locally my repository size has reduced, but on BitBucket it's showing an increase of about 200 MB.  Is there a way someone could run a `git gc` on my repo or advise what could cause this and how it can be resolved?

My issue seems very similar to https://community.atlassian.com/forums/Bitbucket-questions/Unable-to-reduce-repo-size-in-Bitbucket-after-cleaning-up/qaq-p/2850765

My masked repo name is `f*************o*`

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 25, 2025

Hello @fetchdesigns ,

and welcome to the Community!

It's very common for the repository size to temporarily increase after a clean-up as the removed objects will still be dangling in the repository for some time until the next garbage collection is executed. The GC is automatically performed in the repositories from time to time based on some heuristics, but we can help expedite the process :)

That being said, I've managed to run a GC in the repository that matches the masked name you shared with us, and its size was reduced back to 327 MB.

Could you confirm if that size looks good on your end and also aligns with that you're seeing locally ?

Thank you, @fetchdesigns !

Patrik S

 

fetchdesigns March 25, 2025

That size sounds right to me.  Thank you so much!

Like Patrik S likes this

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