Re: Reduce number of changes to pack file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mar 27, 2011, at 8:33 PM, Chandra Sukiman wrote:

I am using git with Dropbox (see
http://stackoverflow.com/questions/1960799/using-gitdropbox-together-effectively) .

I don't see how this can end any way other than in pain.

As the repository size is getting bigger, sometime during the git gc,
it will create a huge .pack file (300 mb) which need to be uploaded
and downloaded by everyone.

Thank you for making my point for me. :-)

I tried to limit the size of the pack to 10m (pack.packSizeLimit =
10m), but when doing gc, what happens now is that most of the pack
files will get re-arranged and modified. This will cause the same
upload/download issue that I want to solve.

:-)

Is there any way for git gc to reduce the number of file changed?

I'm going to answer a completely different question: "Where should I host my Git repo?". The answer is, on (a) one of the free hosting services like GitHub (if your project is public), (b) one of the pay services (like GitHub), or (c) your own Unix server. I use (a) and (c).

You shouldn't be hosting a Git repository on a file-based synchronization service. It's asking for trouble.

Josh


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]