[LinuxPPS] git clone

James Boddington boddingt at optusnet.com.au
Thu Oct 19 08:19:11 CEST 2006


James Cloos wrote:
> If you already have a clone of Linus' tree, do this:
> 
> git clone --reference /path/to/linus/clone git://gitweb.enneenne.com/linuxpps
> 
> If not, you can use rsync to grab one (since the trees on kernel.org
> are available by all of http, git and rsync) and go from there.
> 
> You do need the --partial option to rsync (I use -avrPSH).
> 
> Once you get a rsync you can use it as a --bare clone.  Clone from
> that (use an ssh url) and then use *that* clone for the --reference.
> 
> It is a bit convoluted, but it will work, and the rsync will be
> restartable as needed.
> 

Have started the rsync and I will see what happens.

It is up to objects/pack/pack-a092b9e9a09da8207394a5354bd5f1eeea9ba219.pack. 
Only 7 hours to go. At least I can restart it.

> Another possibility, if you can get access to a box with quality
> bandwidth, is to do a clone -n on that box and rsync the result
> to your local box.  (Be sure to use the -n option to clone in
> that case so that you only need to rsync the .git dir and not
> also a full checkout.)  Once such an rsync is done, use git checkout
> to checkout any branch.

Thanks for the info.

-- 
    James



More information about the LinuxPPS mailing list