Using curly braces referencing git revisions/references fails
I am trying to checkout a single file from stash: git checkout stash@{0} -- some/file This fails with fatal: invalid reference: stash@0 Looks like the curly braces are eliminated, but I am not sure about the culprit. The stash revision is there. git stash list returns stash@{0}: WIP on X stash@{1}: WIP on Y I am using git 1.9.1 on zsh. Is there a way to prevent this brace elimination? mklement0 It is generally better to quote strings that contain {...} sequences (e.g., git checkout 'stash@{0}' ... ), because they are subject to brace expansion . (Or, for that matter, single-quote any string