0 votes
1 view
in Devops and Agile by (28.1k points)

I just upgraded git. I'm on git version 1.8.3.

This morning I tried to unstash a change 1 deep in the stack.

I ran git stash pop [email protected]{1} and got this error.

fatal: ambiguous argument '[email protected]': unknown revision or path not in the working tree.

Use '--' to separate paths from revisions, like this:

'git <command> [<revision>...] -- [<file>...]'

I've tried about 20+ variations on this as well as using apply instead of pop with no success. What's changed? Anyone else encounter this?

1 Answer

0 votes
by (48k points)

In git, the curly braces may require escaping or quoting depending on your OS, shell,

For this query you could use:

git stash list

git stash apply [email protected]{n}

This will help you to pop a specific stash in git version 1.8.3.

Related questions

+5 votes
1 answer
+1 vote
1 answer
+11 votes
2 answers
+8 votes
2 answers
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...