bluiska
bluiska

Reputation: 369

Lost files when doing a git stash - Permission Denied

I'm in panic mode. I created a bigger commit than I should have really. I am on WSL2 using VS Code, running Ubunutu on a Windows machine. I did a git stash using the UI but forgot to include untracked changes. This is all fine, it created a stash with my tracked changes. Then I thought, ah I'll just stash my untracked changes too. I go ahead and try and do a stash (include untracked) and I get a permission denied error. However, all my untracked files have disappeared! How do I get these back? What the heck happened here? It was 2 days worth of work... (I know, I should have commited earlier)

Upvotes: 0

Views: 167

Answers (1)

bluiska
bluiska

Reputation: 369

Turns out that the changes were there it just didn't show in the VS Code UI. All I had to do was apply the stash.

Upvotes: 2

Related Questions