From: Andres Freund Date: Mon, 28 Feb 2011 15:03:08 GMT Subject: Re: copying git repositories ... Message-ID: <201102281603.08375.andres@anarazel.de> In-Reply-To: <1298903102.14697.127.camel@lenovo-w500> Hi Michael, On Monday, February 28, 2011 03:25:02 PM Michael Meeks wrote: > Hi Andres & Brian, > For #2 - I would use the verb 'clone' except of course the 'clone' I'm > talking about would be one that is identical, the same, with no > differences (not eg. missing a few limbs ;-) > > Clearly cp -lR is bad & evil and all that; but it yields exactly what I > need to effectively manage my local trees, multiple checkouts, and > different builds without burning the entire disk. > > Is there a blessed 'cp -lR' wrapper for git that is functionally > identical ? [ and I'm happy of course for some slow divergence, and loss > of efficiency as I pull more changes from time to time into each tree ]. What about git clone --reference=oldrepo ssh://upstream/ ? Andres