Git stash apply @stash {x} doesn't work for me

I am trying to apply a specific stamp using:

git stash apply stash@{2}

      

But end up with this error:

fatal: ambiguous argument 'stash @': unknown version or path not in working tree.

I have many hidden entries, over 20 if I do git bookmark list

I'm not sure what this error is trying to tell me, can anyone advise further? Thanks to

+3


source to share


1 answer


You need to specify a string because your shell is eating content {}

as an extension. So use git stash apply 'stash@{2}'

. Alternatively, you can use the SHA of the wallet, or the next time you use it, you can call stash yourself.



+9


source







All Articles