Re: Stashing untracked files
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 29, 2007, 21:51 UTC
- Message-ID
- <Pine.LNX.4.64.0709292248400.28395@racer.site>
- In-Reply-To
- <EEE8F630-AE62-4425-96A0-239D54724DF4@lrde.epita.fr>
Hi,
On Sat, 29 Sep 2007, Benoit SIGOURE wrote:
Show 9 quoted lines
> On Sep 29, 2007, at 11:03 PM, Johannes Schindelin wrote: > > > Instead this is what you _should_ do: > > > > git add <the files that you care about> > > git stash > > You could stash untracked files that are not ignored (I personally > ignore *.o, *.a and the like).
And what if you happen to forget to ignore that? Or if you happen to have an strace log in some file (which you did not ignore either)?
Thanks, but I think the semantics of git stash is pretty well defined. And it means that you stash away _tracked_ content that was not yet committed.
I mean, you can have your desired behaviour with
$ git add . $ git stash
but if we were to fulfil your wish and change the default behaviour, there is no way back to the current behaviour (which I happen to find pretty sane).
Ciao, Dscho