Re: I don't want the .git directory next to my code.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 16, 2008, 17:52 UTC
- Message-ID
- <alpine.LSU.1.00.0801161752360.17650@racer.site>
- In-Reply-To
- <7vd4s1sm7y.fsf@gitster.siamese.dyndns.org>
Hi,
On Wed, 16 Jan 2008, Junio C Hamano wrote:
Show 17 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > > >> Yes, so you can use > >> > >> $ git --work-tree . --git-dir /some/other/place <some-command> > >> > >> But it's far from the user-friendlyness of a real lightweight > >> checkout: you need to provide the --work-tree and --git-dir options > >> each time you run git. And making an alias or using the environment > >> variables are not really an option if you have more than one > >> repository or working tree to deal with. > > > > Well, the OP said he did not want _any_ file in the worktree. So > > there's no way around specifying by hand everytime where the git > > directory should be. > > Export GIT_DIR and GIT_WORKTREE and you are free to go, right?
Yep.
Ciao, Dscho