You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have faced the strange situation that a repository on the server was around 12 GB big, where a local clone was only around 60 MB big (see the question on stackoverflow about it).
We cannot explain why this was the case, but we would like to know if the repository on the server is shrunk on a regular time basis. At least the UI tells us though:
Go to Repository > Edit
There the tab GC
You will read the sentence: "The garbage collector will pack loose objects pushed from clients and will remove unreferenced objects from the repository."
We have not changed the default there (7 days, ...)
However, after our operation team has done a git gc --prune --agressive on the repository, the repository shrunk from 12 GB to ~ 110 MB.
So these are 2 questions:
Is it dangerous to do something by hand like that?
Is that different to doing an automatic GC triggered by GitBlit?
The text was updated successfully, but these errors were encountered:
Thank's for the hint, so I misunderstood the UI. I just had a look, saw the tab "GC" and the default values, but after hoovering over the values, I saw I cannot change them. So I think the feature is disabled at the moment.
I have found the documentation about the settings for garbabe collection. It reads for me that this will lead to the call of git gc --prune without --agressive, is that true?
Gitblit, being nearly pure Java, does not use native git. Instead the JGit garbage collector is used. While the JGit GC may (now) support prune and/or aggressive these options are not specified since initially JGit didn't support hardly any values here and Gitblit's GC service has not been touched in a while.
We have faced the strange situation that a repository on the server was around 12 GB big, where a local clone was only around 60 MB big (see the question on stackoverflow about it).
We cannot explain why this was the case, but we would like to know if the repository on the server is shrunk on a regular time basis. At least the UI tells us though:
Repository > Edit
GC
However, after our operation team has done a
git gc --prune --agressive
on the repository, the repository shrunk from 12 GB to ~ 110 MB.So these are 2 questions:
The text was updated successfully, but these errors were encountered: