git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthias Kestenholz <mk@feinheit.ch>
To: synhedionn <synhedionn@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git only one file
Date: Tue, 25 Aug 2009 21:38:20 +0200	[thread overview]
Message-ID: <1f6632e50908251238o2fef1048uc9aa27b38f5d7689@mail.gmail.com> (raw)
In-Reply-To: <25140456.post@talk.nabble.com>

On Tue, Aug 25, 2009 at 9:12 PM, synhedionn<synhedionn@gmail.com> wrote:
>
> with git add .  , a directory is expected, but I don't need all my files to
> be recorded, only one of my thousands, so how can I record just 1 file?

By only adding this file to the index. Use "git add $yourfile" instead
of "git add ."

If you do not want to see your thousands of files in the directory
when running git status, you can simply create a .gitignore file with
* as content. Git will still notify you about files which it already
knows about, even though the .gitignore entry tells it to ignore
everything.



Matthias

  reply	other threads:[~2009-08-25 19:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-25 19:12 git only one file synhedionn
2009-08-25 19:38 ` Matthias Kestenholz [this message]
2009-10-02 17:24 ` gsky
     [not found] <synhedionn <synhedionn@gmail.com>
2009-08-25 21:29 ` Giuseppe Bilotta
     [not found]   ` <a7c6f4d60908251605l5fb771a5t79b27cf688fab205@mail.gmail.com>
2009-08-26  4:30     ` Giuseppe Bilotta

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=1f6632e50908251238o2fef1048uc9aa27b38f5d7689@mail.gmail.com \
    --to=mk@feinheit.ch \
    --cc=git@vger.kernel.org \
    --cc=synhedionn@gmail.com \
    /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).