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

basics - auto staging?

From
MMMarcin Mikłas <m.miklas@wszib.edu.pl>
Date
Apr 30, 2025, 10:18 UTC
Message-ID
<10c9da5c-234c-4a40-bbff-91ba820dd970@wszib.edu.pl>
Hello,

when I execute git commit file.txt (by listing file as argumentbut without the -a switch) for a file file.txt that I have made changes without staged them in the index, the changes are still commited. Is there a way to make this work like command git commit without committing the changes that are not staged in the index?

Best Marcin

Next: Junio C Hamano
Message 1 of 2 in “basics - auto staging?”
  1. Marcin MikłasApr 30, 2025
  2. Junio C HamanoApr 30, 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.