I have read in several places that it\'s possible to share the objects
directory between multiple git repositories, e.g. with symbolic links. I would like to d
Why not just crank the gc.pruneExpire
variable up to never
? It's unlikely you'll ever have loose objects 1000 years old that you don't want deleted.
To make sure that the things which really should be pruned do get pruned, you can keep one repo which has all the others as remotes. git gc
would be quite safe in that one, since it really knows what is unreachable.
Edit: Okay, I was a bit cavalier about the time limit; as is pointed out in the comments, 1000 years isn't gonna work too well, but the beginning of the epoch would, or never
.