Re: What's the ".git/gitdir" file?

2015-10-28 Thread Junio C Hamano
Mike Rappazzo writes: > On Tue, Oct 27, 2015 at 6:54 PM, Junio C Hamano wrote: >> Kyle Meyer writes: >> >>> When a ".git" file points to another repo, a ".git/gitdir" file is >>> created in that repo. >>> >>> For example, running >>> >>>

RE: What's the ".git/gitdir" file?

2015-10-27 Thread Randall S. Becker
-Original Message- On Tue, October-27-15 6:23 PM, Stefan Beller wrote: >On Tue, Oct 27, 2015 at 3:04 PM, Kyle Meyer wrote: >> When a ".git" file points to another repo, a ".git/gitdir" file is >> created in that repo. >> >> For example, running >> >> $ mkdir repo-a

Re: What's the ".git/gitdir" file?

2015-10-27 Thread Stefan Beller
On Tue, Oct 27, 2015 at 3:04 PM, Kyle Meyer wrote: > Hello, > > When a ".git" file points to another repo, a ".git/gitdir" file is > created in that repo. > > For example, running > > $ mkdir repo-a repo-b > $ cd repo-a > $ git init > $ cd ../repo-b > $ echo

Re: What's the ".git/gitdir" file?

2015-10-27 Thread Junio C Hamano
Kyle Meyer writes: > When a ".git" file points to another repo, a ".git/gitdir" file is > created in that repo. > > For example, running > > $ mkdir repo-a repo-b > $ cd repo-a > $ git init > $ cd ../repo-b > $ echo "gitdir: ../repo-a/.git" > .git > $ git

Re: What's the ".git/gitdir" file?

2015-10-27 Thread Stefan Beller
On Tue, Oct 27, 2015 at 3:42 PM, Randall S. Becker 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

Re: What's the ".git/gitdir" file?

2015-10-27 Thread Mike Rappazzo
On Tue, Oct 27, 2015 at 6:54 PM, Junio C Hamano wrote: > Kyle Meyer writes: > >> When a ".git" file points to another repo, a ".git/gitdir" file is >> created in that repo. >> >> For example, running >> >> $ mkdir repo-a repo-b >> $ cd repo-a >> $