Re: .git inside a .git: is it safe?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guilhem Bonnefille <guilhem.bonnefille@xxxxxxxxx> wrote:
> 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.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]