Pregunta

I've been working on a branch in git, I then stashed some stuff. After some switching around branches I got back to my initial branch, made some new changes, stashed them, and then realised I wanted to go back to the changes I made before I stashed the first time.

So my question; is there a history of stashes, and if so, how do I get back to one of these?

¿Fue útil?

Solución

Use git stash list and choose appropriate stash in git stash apply <stash-id>

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top