DEV Community

Discussion on: Recover a lost Git stash in two steps

Collapse
 
studoggithub profile image
studog-github

This almost worked for me. I found that the update-ref command created the stash ref correctly but git stash list still did not show anything.

I added the --create-reflog parameter on a second try, and then things worked.

git version 2.22.0 on Ubuntu 18.04

Collapse
 
meduzen profile image
Mehdi M.

Thanks! I don’t have this issue in Git 2.20.1 (macOS 10.14.16) but added a note in the article.