Question about purge git history

2017-10-23 Thread Kai Zhang
Hi I have a git repository on server side, and a client keep pulling this repository periodically. After a while this repository gets very big (even after git gc), and since history is not very important to us, a purge strategy is needed. I did some research on internet, and found two methods

Re: Question about git gc on large text files

2017-08-17 Thread Kai Zhang
> On Aug 17, 2017, at 10:33 AM, Jeff King wrote: > > On Thu, Aug 17, 2017 at 10:28:00AM -0700, Kai Zhang wrote: > >> I have a git repository maintaining one large json file (along with >> several other small files). With commits for large json file, the >> repos

Question about git gc on large text files

2017-08-17 Thread Kai Zhang
Hi 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 c

Re: Bug report: Git pull hang occasionally

2017-01-12 Thread Kai Zhang
> On Jan 12, 2017, at 1:12 PM, Junio C Hamano wrote: > > Kai Zhang writes: > >>> On Dec 21, 2016, at 1:32 PM, Junio C Hamano wrote: >>> >>> Junio C Hamano writes: >>> ... >>> >>> I wonder if the latter is solved by recent

Re: Bug report: Git pull hang occasionally

2017-01-12 Thread Kai Zhang
Hi Junio, After apply this patch, hanging did not happen again. Would this patch go to release in near future? Thanks. Regards, Kai > On Dec 21, 2016, at 1:32 PM, Junio C Hamano wrote: > > Junio C Hamano writes: > >> And the unexpected discrepancy is reported by find_symref() as >> fatal.

Re: Bug report: Git pull hang occasionally

2016-12-21 Thread Kai Zhang
I will verify it. Thanks. > On Dec 21, 2016, at 1:32 PM, Junio C Hamano wrote: > > Junio C Hamano writes: > >> And the unexpected discrepancy is reported by find_symref() as >> fatal. The server side dies, and somehow that fact is lost between >> the upload-pack process and the client and some

Re: Bug report: Git pull hang occasionally

2016-12-21 Thread Kai Zhang
Thank you for your insight and detailed explanation Junio. I think what you said is what is happening in my environment. Both writing and reading are happening simultaneously. > On Dec 21, 2016, at 12:59 PM, Junio C Hamano wrote: > > Kai Zhang writes: > >> 2016/12/20 20:

Bug report: Git pull hang occasionally

2016-12-21 Thread Kai Zhang
Issue: Git pull hang occasionally, and when git pull start hanging, need manually "kill -9" to stop hanging Environment: Server side: Git version: 2.11.0 OS: ubuntu 12.04 Nginx: 1.9.7.4 fcgiwrap: 1.1.0 Git repo: None bare, small size (less than 5 MB including .git folder), small file number (les