Re: What's the ".git/gitdir" file?
- From
Stefan Beller <sbeller@google.com>
- Date
- Oct 27, 2015, 22:54 UTC
- Message-ID
- <CAGZ79kaXdjxT2jbHGHYPN0Bnk_4ZFrPo0sXKUrVvynoMfLPjCQ@mail.gmail.com>
- In-Reply-To
- <017901d11108$ceb2cd10$6c186730$@com>
On Tue, Oct 27, 2015 at 3:42 PM, Randall S. Becker <rsbecker@nexbridge.com> wrote:
> Slightly OT: Is there any way of avoiding having that file in the first place? I'm hoping to have a git repository in a normal file system (Posix) and a working area in a rather less-than-normal one where dots in file names are bad (actually a dot is a separator).
As said before, I would not expect a file .git/gitdir to be there if
not using submodules.
For your OT question, I'd presume you'd have environment variables setup
export GIT_DIR=path_with_no_dots_and_git_repo_in_it # you mention
that is in your posix FS
export GIT_WORK_TREE=/some.place.with.dot.separators
and you'd be good to go.> > Cheers, > Randall >