Skip to contentSkip to conversation

GIT_DIR/--git-dir question

DISCUSSION Joakim Tjernlund 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

I just started to look at having multiple work trees, each working on a separate branch, using the same git repo.

GIT_DIR/--git-dir seems to be what I am looking for but I wonder if there is a way to store the value of GIT_DIR/--git-dir in the working tree somehow?

Jocke

#1 lore raw
Quoted 2 lines · Joakim Tjernlund

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.

#2 lore raw
Quoted 6 lines

From: Junio C Hamano [mailto:[email protected]]
Sent: den 8 november 2007 23:01
To: Joakim Tjernlund
Cc: [email protected]
Subject: Re: GIT_DIR/--git-dir question

Quoted 8 lines
Quoted 1 line · Joakim Tjernlund

I just started to look at having multiple work trees, each

working on a separate branch,

Quoted 1 line

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