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

Re: Question on git fetch to bare repo

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 9, 2007, 00:22 UTC
Message-ID
<Pine.LNX.4.63.0702090119070.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<eqg8fa$ru3$1@sea.gmane.org>
Hi,
[Jakub, you broke the thread. I Cc' Bill, but I cannot join the thread]
On Thu, 8 Feb 2007, Jakub Narebski wrote:
Show 14 quoted lines
> Bill Lear wrote:
> 
> > I have a public bare repo I created yesterday:
> > 
> > % mkdir project && cd project
> > % git --bare init-db --shared
> > % git --bare fetch git://source/project
> > [All seems well]
> 
> _Seems_ well
> 
>   % git clone --bare --shared git://source/project project
> 
> is a proper invocation.
No.

init --shared means that the repository is set up such that different users can update branches.

clone --shared means that if the original repository is on the local machine (which it is not in your example), then that is used as an alternate, i.e. the objects are not copied at all, but reused from the other location.

I complained about that ambiguity, but I am probably the guilty person: AFAIR it was me who introduced "init --shared".

Ciao, Dscho

Previous: Jakub NarebskiNext: Johannes Schindelin
Message 3 of 10 in “Question on git fetch to bare repo”
  1. Bill LearFeb 8, 2007
  2. Jakub NarebskiFeb 8, 2007
  3. Johannes SchindelinFeb 9, 2007
  4. Johannes SchindelinFeb 9, 2007
  5. Jeff KingFeb 9, 2007
  6. Bill LearFeb 9, 2007
  7. Bill LearFeb 12, 2007
  8. Jeff KingFeb 13, 2007
  9. Junio C HamanoFeb 13, 2007
  10. Jeff KingFeb 13, 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.