You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hey everybody,
we’ve exceeded the file size limit of our repository. To reduce the size we deleted unused branches and excluded some files. If we use the command git count-objects -Hv we get:
count: 2943
size: 140.03 MiB
in-pack: 59012
packs: 10
size-pack: 3.51 GiB
prune-packable: 25
garbage: 0
size-garbage: 0 bytes
So the size-pack is 3.51 GB and should not exceed the file size limit?
I saved my local changes to a new branch and tried to reset the critical branch to a previous commit using git push –force but than it says that the repository size is 4.2 GB and I can not push to the repository.
Do you have any suggestion what to do next?
Best Regards
Kai
Hey @Kai Brodrecht
Welcome to the community!
The size did not reduce because the remote repository still has all the dangling commits and cache taking the repository size.
Nevertheless, I have triggered Git GC on the affected repository that was in 4GB size, and the size has been reduced to 1.9GB after GC is complete.
Let me know if that helps.
Cheers,
Syahrul
Hey @Syahrul
thank you the GC did the job. Is it possible to trigger garbage collection by myself? If the problem occurs again.
Best regards
Kai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Kai Brodrecht
Awesome.
Currently, Bitbucket cloud runs Git GC automatically regularly.
However, if you need an immediate GC, you'll have to raise a support ticket or community questions request to trigger the GC manually
Also, we have an enhancement request open to allow users to mark their repositories for GC, which you can refer to below:
Cheers,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.