git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Jonathan del Strother
Message 6 of 6 in “My stash wants to delete all my files”
  1. Jonathan del StrotherSep 24, 2007
  2. Junio C HamanoSep 25, 2007
  3. Jonathan del StrotherSep 25, 2007
  4. Johannes SchindelinSep 25, 2007
  5. Jonathan del StrotherSep 25, 2007
  6. Johannes SchindelinSep 25, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.