Thread (3 messages) read the whole thread 3 messages, 2 authors, 2017-08-17

Re: Question about git gc on large text files

From: Kai Zhang <hidden>
Date: 2017-08-17 17:40:11

On Aug 17, 2017, at 10:33 AM, Jeff King [off-list ref] wrote:

On Thu, Aug 17, 2017 at 10:28:00AM -0700, Kai Zhang wrote:
quoted
I have a git repository maintaining one large json file (along with
several other small files). With commits for large json file, the
repository become bigger and bigger, so I tried to run command "git gc
--prune=now --aggressive" to reduce disk usage, then I found .git
folder size did not change. I had wonderful experience with git gc
against files around 10M to 20M, and I am wondering if there is any
configuration need to tweak for large text files?

Here I have more details:
1. Json file size: 1G
Git won't try to delta-compress anything over 500MB by default. Try:

 git config core.bigfilethreshold 2G
 git gc --aggressive

-Peff
It works! Thank you so much!

Kai
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help