git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git only one file

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Aug 26, 2009, 04:30 UTC
Message-ID
<cb7bb73a0908252130u792a328bta1e186ff8f5454b8@mail.gmail.com>
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
Previous: Giuseppe Bilotta
Message 2 of 2 in “Re: git only one file”
  1. Giuseppe BilottaAug 25, 2009
  2. Giuseppe BilottaAug 26, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.