Re: My stash wants to delete all my files
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Sep 25, 2007, 10:41 UTC
- Message-ID
- <Pine.LNX.4.64.0709251139480.28395@racer.site>
- In-Reply-To
- <0F9BDBCD-06AA-4AB1-9DDA-9C98E8796AA1@steelskies.com>
Hi,
On Tue, 25 Sep 2007, Jonathan del Strother wrote:
Show 14 quoted lines
> On 25 Sep 2007, at 10:56, Johannes Schindelin wrote: > > > On Tue, 25 Sep 2007, Jonathan del Strother wrote: > > > > > I don't think I git-added anything - just made changes to the > > > working copy. (It *does* stash those, right??) > > > > Stash does not care about things that are not tracked, so no, it does > > not stash those. Imagine a stash saving all those .o, .a and .so > > files... Insanity! > > > Mm, ok - fair point. I was actually thinking of files that are already > tracked, but haven't been added to the staging area with git add.
Ah. I read your statement as "I don't think I git-added anything, ever".
So this is what stash is supposed to do:
- save the differences between the HEAD and the index
- save the differences between the HEAD and the working tree
- reset the index and the working tree to the state of the HEAD
So indeed, I am as puzzled as you are. Maybe it was your initial commit?
Ciao, Dscho