Re: I don't want the .git directory next to my code.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johannes Schindelin <Johannes.Schindelin@xxxxxx> 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?
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux