Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

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

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:42:59

Guilhem Bonnefille [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help