threads / discuss / 46938

Auto adding changed files

Subject: Auto adding changed files

## tl;dr

3 messages between Oct 9, 2017 and Oct 9, 2017.

replies: 2people: 2as markdown or json

Sascha Manns· Oct 9, 2017, 19:35 UTC · lore
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

Randall S. Becker· Oct 9, 2017, 19:39 UTC · re: Sascha Manns · lore

RE: Auto adding changed files

-----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.

Sascha Manns· Oct 9, 2017, 19:47 UTC · re: Randall S. Becker · lore

Re: Auto adding changed files

Hello Randall,
Am Montag, den 09.10.2017, 15:39 -0400 schrieb Randall S. Becker:
Show 13 quoted lines
> -----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;
Cool. Thank you very much.

Greetings Sascha

← back to recent threads