git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bakshi" <joydeep.bakshi@infoservices.in>
To: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Cc: git@vger.kernel.org
Subject: Re: How to add folder NON RECURSIVELY ?
Date: Wed, 4 Apr 2012 12:22:24 +0530	[thread overview]
Message-ID: <201204040652.q346qaC8020941@VM-MailSafe-02.soltecsis.com> (raw)
In-Reply-To: <vpqaa2tc5xi.fsf@bauges.imag.fr>

On Tue, 03 Apr 2012 15:15:37 +0200
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:

> "J. Bakshi" <joydeep.bakshi@infoservices.in> writes:
> 
> > Could you please suggest how can I add foo/dir1/file1 ?
> >
> > guess
> >
> > touch foo/dir1/.gitignore
> > git add foo/dir1/
> 
> Not if you want only "file1" to be added. As I said, Git doesn't know
> and doesn't want to know about directories. So "git add directory/" is
> just a shorthand that adds all (non-ignored) files in this directory.
> 
> > git add foo/dir1/file1
> 
> This last line alone will do it.
> 

Thanks a lot to all of you for your valuable suggestion.

      reply	other threads:[~2012-04-04  6:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=201204040652.q346qaC8020941@VM-MailSafe-02.soltecsis.com \
    --to=joydeep.bakshi@infoservices.in \
    --cc=Matthieu.Moy@grenoble-inp.fr \
    --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).