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

[feature request] allow directly committing untracked files

From
IGIsaac Oscar Gariano <isaacoscar@live.com.au>
Date
Aug 23, 2025, 06:45 UTC
Message-ID
<SYBP282MB2963ABA12BD14594F62E47B08C3CA@SYBP282MB2963.AUSP282.PROD.OUTLOOK.COM>

I often use 'git commit some-file -m 'some message'" to quickly make a commit, but this is annoying as it doesn't work if some-file is untracked, you first have to do 'git add some-file'. It would also be nice to do this with the `-a` option as well. Is there any reason why git does not let you do this? Would people be open to me making a patch that ads this? Would it need to be behind an option for backwards-compatibility?

— Isaac Oscar Gariano​
Next: brian m. carlson
Message 1 of 3 in “[feature request] allow directly committing untracked files”
  1. Isaac Oscar GarianoAug 23, 2025
  2. brian m. carlsonAug 23, 2025
  3. Michal SuchánekAug 25, 2025

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.