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

Re: git commit error on initial (the very first) commit

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Jan 29, 2006, 18:16 UTC
Message-ID
<20060129181625.GA5540@fieldses.org>
In-Reply-To
<200601292026.54893.arvidjaar@mail.ru>
On Sun, Jan 29, 2006 at 08:26:54PM +0300, Andrey Borzenkov wrote:
Show 7 quoted lines
> May be I do something wrong? What is correct procedure to initially import 
> tree? git 1.1.4
> 
> {pts/0}% git init-db
> defaulting to local storage area
> {pts/0}% git add .
> {pts/0}% git commit -m 'initial import'

It needs to know which paths to update. Probably you want to include all the files you added with the "git add", and you can do that just with -a:

	git commit -a -m "initial import"

should do the job. The default commit command for me is usually just git commit -a.

--b.
Previous: Andrey BorzenkovNext: Junio C Hamano
Message 2 of 5 in “git commit error on initial (the very first) commit”
  1. Andrey BorzenkovJan 29, 2006
  2. J. Bruce FieldsJan 29, 2006
  3. Junio C HamanoJan 29, 2006
  4. J. Bruce FieldsJan 29, 2006
  5. Junio C HamanoJan 29, 2006

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.