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

Re: `git stash apply` deleted a random dir from my working copy

From
Stefan Monov <logixoul@gmail.com>
Date
Nov 3, 2016, 17:01 UTC
Message-ID
<CAJtFkWu1qf3xFg1-B-xVONOmqQZfJhe4+qAb4E3H2A5-st_2dw@mail.gmail.com>
In-Reply-To
<CAJtFkWsUL=9K=VGTDejE+4RR3HJevk+2aRAhUyf8-mDrqi5MRg@mail.gmail.com>

Actually, I just tried restoring my dir with `git pull origin clipping`, but that didn't restore it. So, besides the question "why did it get deleted", I'd like to ask "how do I restore it?", as well.

On Thu, Nov 3, 2016 at 6:06 PM, Stefan Monov <logixoul@gmail.com> wrote:
Show 18 quoted lines
> Hi.
>
> I just tried `git stash save` for the first time. It worked fine. Then
> I tried `git stash apply` and while my uncommitted changes were
> restored, another effect was that a random dir from the root of my
> working copy was deleted. I don't know why it chose that exact dir,
> there's lots of other dirs like it in the root.
>
> `git stash save` output and shortened `git stash apply` output are attached.
>
> Note: The dir that got deleted was a committed and pushed dir. It had
> no uncommitted local changes.
>
> It's not a huge problem, because there was no data loss - I can pull
> the deleted data back from the repo. But I'd still like to know why
> this problem happened.
>
> TIA, Stefan Monov
Previous: Stefan MonovNext: Stefan Monov
Message 2 of 3 in “`git stash apply` deleted a random dir from my working copy”
  1. Stefan MonovNov 3, 2016
  2. Stefan MonovNov 3, 2016
  3. Stefan MonovNov 3, 2016

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.