From: Johannes Schindelin Date: Wed, 25 Jul 2007 20:15:29 GMT Subject: Re: easy repository initialization that turned out not to be that easy Message-ID: In-Reply-To: <0EAD32C5-11DA-4B99-919D-87C0006A389C@zib.de> Hi, On Wed, 25 Jul 2007, Steffen Prohaska wrote: > Cloning it to shared doesn't work either because the meaning of > 'git-clone --bare --shared' is different from 'git-init --shared'. Yes, I lamented on that already. But we cannot change that. Too many users. > mkdir shared.git > cd shared.git > git --bare init --shared > > and tried to naively fetch all by executing > > git fetch ../private.git Almost. "git fetch" does not store anything by default, so you have to do something like $ git config remote.origin.url ../private.git $ git config remote.origin.fetch 'refs/*:refs/*' $ git fetch Eventually, I would like that to be available with $ git remote add --mirror fetch ../private.git If nobody beats me to it, I'll do it later today. Ciao, Dscho