Hi,
Our repo has shot up in size almost over night. A few days ago the repo was at 1.1gb but now everyone is locked out as it has reached 2.3gb. We do not believe this is because anything being committed. We have gone through and removed old branches/tags. The next logical step for me seems to be to call 'git gc' but from what i understand this is not something i can trigger myself. Is there a way i can force this to be called and be sure it has?
Thanks
Jon
Repository can't grow by itself. Any file on any branch contributes to the overall size of the repository.
I just triggered aggressive garbage collection for your repository, and it reduced to 1.0Gb. I believe what happened is someone accidentally pushed a big file but realised that and pushed a revert, however GC didn't trigger after the second update (it is not triggered on every push because it's quite expensive operation).
Cheers,
Daniil
I would look at the commits that have been done recently. Bitbucket has its own gc that is more affective than git gc. Removing branches/tags have not affect on the size, since they are just pointers to specific commits. You need to clear out your history in order to reduce the size. Please see this guide on how to do that, Reduce repository size
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.