質問

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?

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top