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*`
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.