Re: [RFC] git add -a
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 6, 2008, 11:35 UTC
- Message-ID
- <alpine.LSU.1.00.0803061235060.15786@racer.site>
- In-Reply-To
- <e29894ca0803060257u19c98074t789f87e1f8c120e7@mail.gmail.com>
Hi,
On Thu, 6 Mar 2008, Marc-André Lureau wrote:
Show 11 quoted lines
> Hi, > > On Thu, Mar 6, 2008 at 12:46 PM, Michele Ballabio > <barra_cuda@katamail.com> wrote: > > > > There's "git add -u". It should do what you want. > > > > Thanks for this answer :) I wonder why "-u" and not "-a".. After all > git commit "-a" could be "-s" if we follow that distinction > (Update/Stage/All).
Probably because some people would expect "git add -a" to do the same as "git add .", i.e. add _all_ files (even the untracked ones), as opposed to "git add -u", which updates all _tracked_ files.
Hth, Dscho