Re: sub-directory repo technique
- From
Avery Pennarun <apenwarr@gmail.com>
- Date
- Jun 16, 2009, 16:50 UTC
- Message-ID
- <32541b130906160950s75f4aa11h59ad2de7d2bcd40c@mail.gmail.com>
- In-Reply-To
- <9586f3420906120507o194fc459l5fbdcd14a7095ae8@mail.gmail.com>
On Fri, Jun 12, 2009 at 8:07 AM, Allan Kelly<allankelly@gmail.com> 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