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

'git commit' ignoring args?

From
JGJeff Garzik <jgarzik@pobox.com>
Date
Nov 28, 2005, 16:24 UTC
Message-ID
<438B2F40.6070801@pobox.com>
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 only commit in the repository is the initial commit.

# # Updated but not checked in: # (will commit) # # modified: Makefile # modified: book.xml # new file: stylesheet.xsl # # # Untracked files: # (use "git add" to add to commit) # # book.pdf

Expected behavior is that Makefile and stylesheet.xsl would be checked in, but not book.xml.

	Jeff
Next: Junio C Hamano
Message 1 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.