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!
Dmitri
UPDATE:
here the result of "git count-objects -Hv" on local (bare) repository:
count: 0
size: 0 bytes
in-pack: 76672
packs: 3
size-pack: 24.78 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
G'day, @stargazer33
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.
Cheers,
Syahrul
Excellent! Many thanks!
Just for my understanding:
I know this repository will grow with the time.
From my side - I can run BFG and "git gc" from time to time.
What else I can do to prevent gigabyte-size of the repository?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
G'day @stargazer33
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
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.