Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top