git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
To: git@vger.kernel.org
Cc: synhedionn <synhedionn@gmail.com>
Subject: Re: git only one file
Date: Tue, 25 Aug 2009 23:29:28 +0200	[thread overview]
Message-ID: <1251235768-24921-1-git-send-email-giuseppe.bilotta@gmail.com> (raw)
In-Reply-To: <synhedionn <synhedionn@gmail.com>

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?

Generally, if you want to track a single file in a directory you just
add that file, as per Matthias' suggestion, and possibly create a
.gitignore with the single '*' pattern in it..

<shameless plug>
However, if you want to track more than one _independent_ files in the
same directory (RCS-style), then I would recommend you look into zit,
the Git-based single-file content tracker I've developed. You can find
it at git://git.oblomov.eu/zit ( gitweb at http://git.oblomov.eu/zit )
</shameless plug>

       reply	other threads:[~2009-08-25 21:29 UTC|newest]

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

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=1251235768-24921-1-git-send-email-giuseppe.bilotta@gmail.com \
    --to=giuseppe.bilotta@gmail.com \
    --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).