git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
To: syn hedionn <synhedionn@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git only one file
Date: Wed, 26 Aug 2009 06:30:42 +0200	[thread overview]
Message-ID: <cb7bb73a0908252130u792a328bta1e186ff8f5454b8@mail.gmail.com> (raw)
In-Reply-To: <a7c6f4d60908251605l5fb771a5t79b27cf688fab205@mail.gmail.com>

On Wed, Aug 26, 2009 at 1:05 AM, syn hedionn<synhedionn@gmail.com> wrote:
> ok , but if I put,
> git add index.htm
> I have:
> fatal: Not a git repository

You need to initialize the repository before you can add files to it, so:

git init
git add index.htm
git commit -m "Initial commit"

The zit way would be:

zit track index.htm
zit commit -m "Initial commit" index.htm

-- 
Giuseppe "Oblomov" Bilotta

  parent reply	other threads:[~2009-08-26  4:31 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 ` git only one file Giuseppe Bilotta
     [not found]   ` <a7c6f4d60908251605l5fb771a5t79b27cf688fab205@mail.gmail.com>
2009-08-26  4:30     ` Giuseppe Bilotta [this message]
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=cb7bb73a0908252130u792a328bta1e186ff8f5454b8@mail.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).