Simple question, I'm trying to run git gc
on a machine with a quota. Pre-gc, I'm at about 18GB of usage, almost all of which is my cloned git repository. My disk limit is 25GB. During the git gc
operation, enough temporary files are written to disk to hit my limit and thus cause the git gc
operation to fail.
I can delete the .git/objects/pack/tmp_pack_*
after the failed operation and get back down to 18GB of usage, but I'd really like to actually complete git gc
and reclaim a little performance.
Is there some fancy option (or series of other git commands) that I can use that doesn't involve first writing >7GB of temporary files to the disk?