From: Bert Wesarg Date: Wed, 16 Jan 2008 13:21:45 GMT Subject: Re: I don't want the .git directory next to my code. Message-ID: <36ca99e90801160521v4851bdf8n72e69d69f6344013@mail.gmail.com> In-Reply-To: On Jan 16, 2008 5:13 AM, Daniel Barkalow wrote: > On Tue, 15 Jan 2008, Mike wrote: > > > How do I make the repository dir live somewhere else, the hell away from my > > code? Thanks > > export GIT_DIR=/somewhere-else.git > > Note that this only really works if you've only got one repository; > there's no good way to have the repository information outside of the > working directory and still have which repository you're using depend on > which directory you're working in. This project may solve this problem: http://swapoff.org/OnDir Bert > > -Daniel