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
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
For one of my repositories I got a "...repository is over 2 GB" warning.
I used BFG tool on "bare reposotory", than pushed the results back into bitbucket (by the way, the "bare reposotory" is about 28MB, not 2GB!)
Still I see the "Repository size=2.02 GB"
Would somebody please run gc on bitbucket server?
Repositry URL: <redacted>
thanks in advance!
here the result of "git count-objects -Hv" on local (bare) repository:
size: 0 bytes
size-pack: 24.78 MiB
size-garbage: 0 bytes
I have triggered Git GC on the affected repository, and the size has been reduced to 24 MB.
Could you please review it and let me know how it goes?
I hope this helps.
Thanks for the update
Essentially repository size increase over time is normal. However, if the size increase happens overnight, the issue is likely because a user pushes large binary files into the repository.
You can use gitignore to ignore specific file patterns etc to prevent the accidental push of large files into the repository.
Sample gitignore to ignore a specific file pattern; https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#_ignoring