From: Jonathan Nieder Date: Sat, 05 Feb 2011 13:27:08 GMT Subject: Re: [idea] separate .git dir and the working tree Message-ID: <20110205132708.GA18391@elie> In-Reply-To: <20110205032339.GA15303@mg1> (restoring cc list; please do not cull cc's) Mike Gant wrote: > On Sat, Feb 05, 2011 at 10:53:58AM +0800, redstun wrote: >> I think separating the .git directory from its working tree could >> increase the safety of the data to one more level higher. [...] > GIT_DIR and GIT_WORK_TREE might be what you are looking for. Explanation > of usage in 'man git' The .git directory is allowed to be a symlink. Or a file like so gitdir: /path/to/git/repo for symlink-challenged operating systems. See gitrepository-layout(7) for details. Cheers, Jonathan