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

Re: 'git commit' ignoring args?

From
Andreas Ericsson <ae@op5.se>
Date
Nov 28, 2005, 23:02 UTC
Message-ID
<438B8C6C.8030407@op5.se>
In-Reply-To
<438B2F40.6070801@pobox.com>
Jeff Garzik wrote:
Show 9 quoted lines
> 
> With the latest git as of this writing, executing
> 
>     git commit Makefile stylesheet.xsl
> 
> results in an attempt to commit the above files, and also another file 
> book.xml.  book.xml is modified, but I do not wish to check it in at 
> this time, so I did not list it as an argument to 'git commit'.
> 

The index has been updated to match the file on disk somehow (perhaps you did 'git add book.xml'?). You can un-mark it with

	git reset HEAD
which is equivalent to
	git read-tree --reset HEAD
so long as you're operating on HEAD.
-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Jeff GarzikNext: Junio C Hamano
Message 4 of 6 in “'git commit' ignoring args?”
  1. Jeff GarzikNov 28, 2005
  2. Junio C HamanoNov 28, 2005
  3. Jeff GarzikNov 29, 2005
  4. Andreas EricssonNov 28, 2005
  5. Junio C HamanoNov 28, 2005
  6. Andreas EricssonNov 29, 2005

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.