Re: .git inside a .git: is it safe?
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Mar 12, 2007, 22:15 UTC
- Message-ID
- <20070312221540.GA16545@spearce.org>
- In-Reply-To
- <8b65902a0703121456s56008088ra14452ef7f325cf3@mail.gmail.com>
Guilhem Bonnefille <guilhem.bonnefille@gmail.com> wrote:
Show 12 quoted lines
> But, I recently discover that everything seems fine if I include the > Git repo of mainproject inside the Git repo of my project. The layout > lloks like this: > myproject > |- .git > |- sub > |- tree > |- mainproject > |- .git > > > It seems to work. But do you think such layout is "safe" ?
Yes, that's fine. You just probably want an entry in the top level project (myproject) that says ignore the stuff under mainproject. That way "git add ." in myproject doesn't include files in mainproject by accident.
-- Shawn.