git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Steffen Prohaska
Message 2 of 2 in “easy repository initialization that turned out not to be that easy”
  1. Steffen ProhaskaJul 25, 2007
  2. Johannes SchindelinJul 25, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.