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

RE: Auto adding changed files

From
Randall S. Becker <rsbecker@nexbridge.com>
Date
Oct 9, 2017, 19:39 UTC
Message-ID
<000201d34136$5e9f1640$1bdd42c0$@nexbridge.com>
In-Reply-To
<1507577714.2359.27.camel@mailbox.org>

-----Original Message----- On October 9, 2017 3:35 PM Sascha Manns wrote:

>if i'm in a git repo and change a file, it is listed in git status. But i have to add this file manually and commit them.
$ git commit -a

From the git commit help: by using the -a switch with the commit command to automatically "add" changes from all known files (i.e. all files that are already listed in the index) and to automatically "rm" files in the index that have been removed from the working tree, and then perform the actual commit;

Cheers, Randall

-- Brief whoami: NonStop&UNIX developer since approximately UNIX(421664400)/NonStop(211288444200000000) -- In my real life, I talk too much.

Previous: Sascha MannsNext: Sascha Manns
Message 2 of 3 in “Auto adding changed files”
  1. Sascha MannsOct 9, 2017
  2. Randall S. BeckerOct 9, 2017
  3. Sascha MannsOct 9, 2017

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.