Re: easy repository initialization that turned out not to be that easy
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 25, 2007, 20:15 UTC
- Message-ID
- <Pine.LNX.4.64.0707252112250.14781@racer.site>
- 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.
Show 7 quoted lines
> 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