Git gc on a quota machine

A simple question, I'm trying to run git gcon a machine with a quota. Pre-gc, I use about 18 GB, almost all of which are my cloned git repository. My disk limit is 25 GB. During the operation, git gcenough temporary files are written to disk to get to my limit, and thus cause the operation to fail git gc.

I can delete .git/objects/pack/tmp_pack_*after a failed operation and return to 18 GB of use, but I really would like to complete git gcand slightly increase the performance.

Is there any bizarre option (or a series of other git commands) that I can use that doesn't include the first write> 7 GB of temporary files to disk?

+5
source share
3 answers

What part gcis important to you? You can try the individual parts git-pruneand git-repack. Use to git-prunebe sure to specify a clipping date with the option --expire. If your repo has a ton of loose objects, it will be useful for you to get rid of them first. *

With git-repackyou, you may come across depth and window settings to get something small enough to work within your space.

* I do not pretend to have a full understanding of all the problems associated with this, but I notice that the draft appears after repack in the git-gc code.

+2
source

git prune - great offer, good call Jeffromy.

, - ; git gc; .

7z , / Unix, IIRC. , , , , . tar c --lzma, , tar czf cjf. , , umm, (?) .

+1

, - , . , ...:)

0

All Articles