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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top