git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to add folder NON RECURSIVELY ?
@ 2012-04-03 12:01 J. Bakshi
  2012-04-03 12:08 ` Matthieu Moy
  0 siblings, 1 reply; 6+ messages in thread
From: J. Bakshi @ 2012-04-03 12:01 UTC (permalink / raw)
  To: git

Hello,

Please consider the following folder structure

` `  `  `
foo/

foo/dir1/file1

foo/dir2/file2
foo/dir2/file3

` ` ` ` ` ` ` 

I like to add the folder structure in a way that only foo/dir1/file1 is added to
the git. foo/dir2 and foo/dir3 should be added to the git also to show the directory
structure and not the contents of those folder.

It is easy in SVN by --non-recursive switch, but how can I do this in git with .gitignore ?

Thanks

BTW: Please CC to me

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-04  6:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 12:01 How to add folder NON RECURSIVELY ? J. Bakshi
2012-04-03 12:08 ` Matthieu Moy
2012-04-03 12:22   ` J. Bakshi
2012-04-03 13:12     ` Dirk Süsserott
2012-04-03 13:15     ` Matthieu Moy
2012-04-04  6:52       ` J. Bakshi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).