From: Avery Pennarun Date: Tue, 16 Jun 2009 16:50:49 GMT Subject: Re: sub-directory repo technique Message-ID: <32541b130906160950s75f4aa11h59ad2de7d2bcd40c@mail.gmail.com> In-Reply-To: <9586f3420906120507o194fc459l5fbdcd14a7095ae8@mail.gmail.com> On Fri, Jun 12, 2009 at 8:07 AM, Allan Kelly wrote: > (I need the top-level .gitignore to contain a line '.gitignore' to > avoid reporting the "sub-repo" .gitignore as untracked - which is > correct but not of interest. It appears that git automatically ignores > the .git dir for the westbarnsgala.info repo created below) It's not really "ignoring" the .git dir. It's treating the entire subtree that contains the .git dir as a submodule. See 'man git-submodule'. Git submodules may actually resolve your problem in a more straightforward way than what you're doing. You might also be interested in my git-subtree tool: http://github.com/apenwarr/git-subtree Have fun, Avery