git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Auto adding changed files
@ 2017-10-09 19:35 Sascha Manns
  2017-10-09 19:39 ` Randall S. Becker
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Manns @ 2017-10-09 19:35 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Auto adding changed files
  2017-10-09 19:35 Auto adding changed files Sascha Manns
@ 2017-10-09 19:39 ` Randall S. Becker
  2017-10-09 19:47   ` Sascha Manns
  0 siblings, 1 reply; 3+ messages in thread
From: Randall S. Becker @ 2017-10-09 19:39 UTC (permalink / raw)
  To: 'Sascha Manns', git

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Auto adding changed files
  2017-10-09 19:39 ` Randall S. Becker
@ 2017-10-09 19:47   ` Sascha Manns
  0 siblings, 0 replies; 3+ messages in thread
From: Sascha Manns @ 2017-10-09 19:47 UTC (permalink / raw)
  To: Randall S. Becker, git

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-09 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-09 19:35 Auto adding changed files Sascha Manns
2017-10-09 19:39 ` Randall S. Becker
2017-10-09 19:47   ` Sascha Manns

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).