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

RE: GIT_DIR/--git-dir question

From
JTJoakim Tjernlund <joakim.tjernlund@transmode.se>
Date
Nov 8, 2007, 23:24 UTC
Message-ID
<008701c8225e$90f38dd0$5267a8c0@Jocke>
In-Reply-To
<7vfxzg1jpb.fsf@gitster.siamese.dyndns.org>
Show 14 quoted lines
> From: Junio C Hamano [mailto:gitster@pobox.com] 
> Sent: den 8 november 2007 23:01
> To: Joakim Tjernlund
> Cc: git@vger.kernel.org
> Subject: Re: GIT_DIR/--git-dir question
> 
> "Joakim Tjernlund" <joakim.tjernlund@transmode.se> writes:
> 
> > I just started to look at having multiple work trees, each 
> working on a separate branch,
> > using the same git repo.
> 
> I suspect contrib/workdir is what you are looking for not
> GIT_DIR.

Yes, it does look like what I am looking for. But now I am a bit confused as to what GIT_DIR/--git-dir is supposed to be used for.

 Jocke
Previous: Junio C Hamano
Message 3 of 3 in “GIT_DIR/--git-dir question”
  1. Joakim TjernlundNov 8, 2007
  2. Junio C HamanoNov 8, 2007
  3. Joakim TjernlundNov 8, 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.