Skip to contentSkip to conversation

Auto adding changed files

DISCUSSION Sascha Manns 2 participants 3 messages Oct 9, 2017

lore
Share & tools
lore
#0 lore raw

Hello list,

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.

Is it possible to autoadd such files?

Greetings
Sascha

#1 lore raw

-----Original Message-----

Quoted 1 line · Sascha Manns

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.

#2 lore raw

Hello Randall,

Am Montag, den 09.10.2017, 15:39 -0400 schrieb Randall S. Becker:

Quoted 5 lines

-----Original Message-----

Quoted 2 lines · Sascha Manns

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.

Quoted 8 lines
$ 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;

Cool. Thank you very much.

Greetings
Sascha