Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k 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 stash@{1} and got this error.

fatal: ambiguous argument 'stash@1': 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 (50.2k 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 stash@{n}

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

Related questions

+4 votes
1 answer
+9 votes
2 answers
+6 votes
2 answers
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...