# Auto adding changed files

3 messages from 2017-10-09 to 2017-10-09. Participants: Sascha Manns, Randall S. Becker.
Thread: https://gitlist.dev/t/46938

## Sascha Manns, 2017-10-09 19:35

Subject: Auto adding changed files
Message-ID: <1507577714.2359.27.camel@mailbox.org>
URL: https://gitlist.dev/e/1507577714.2359.27.camel%40mailbox.org

```
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, 2017-10-09 19:39

Subject: RE: Auto adding changed files
Message-ID: <000201d34136$5e9f1640$1bdd42c0$@nexbridge.com>
URL: https://gitlist.dev/e/000201d34136%245e9f1640%241bdd42c0%24%40nexbridge.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.




```

## Sascha Manns, 2017-10-09 19:47

Subject: Re: Auto adding changed files
Message-ID: <1507578474.2359.29.camel@mailbox.org>
URL: https://gitlist.dev/e/1507578474.2359.29.camel%40mailbox.org
In-Reply-To: <000201d34136$5e9f1640$1bdd42c0$@nexbridge.com>

```
Hello Randall,

Am Montag, den 09.10.2017, 15:39 -0400 schrieb Randall S. Becker:
> -----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


```
