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

3 messages, 1 author, 2016-11-03 · open the first message on its own page

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

From: Stefan Monov <hidden>
Date: 2016-11-03 16:06:31

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

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

From: Stefan Monov <hidden>
Date: 2016-11-03 17:01:43

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 [off-list ref] wrote:
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

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

From: Stefan Monov <hidden>
Date: 2016-11-03 17:05:16

Scratch my last message, I figured out how to restore it. In the
TortoiseGit context menu I selected "Diff", and in the list the
deleted files were listed as "missing". I selected them all, right
clicked them, and selected "revert". Still don't know why the dir got
deleted in the first place though.

On Thu, Nov 3, 2016 at 7:01 PM, Stefan Monov [off-list ref] wrote:
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 [off-list ref] wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help