GIT_DIR/--git-dir question
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
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.
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