From: "J. Bakshi" <joydeep.bakshi@infoservices.in>
To: git@vger.kernel.org
Subject: How to add folder NON RECURSIVELY ?
Date: Tue, 3 Apr 2012 17:31:11 +0530 [thread overview]
Message-ID: <20120403173111.5329d7ed@shiva.selfip.org> (raw)
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
next reply other threads:[~2012-04-03 12:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 12:01 J. Bakshi [this message]
2012-04-03 12:08 ` How to add folder NON RECURSIVELY ? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120403173111.5329d7ed@shiva.selfip.org \
--to=joydeep.bakshi@infoservices.in \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).