I would definitely avoid using -- as a prefix for branch names (I assume you 
know what the double-dash normally means with git, as you are using it 

I can create branches locally with - and -- prefixes, but I'm unable to 
check them out.

[19:29:08] tfnico@x:~/projects/foo/>git branch -- --test
[19:29:13] tfnico@x:~/projects/foo/>git branch
* master
[19:29:18] tfnico@x:~/projects/foo/>git checkout -- --test
error: pathspec '--test' did not match any file(s) known to git.

I assume this is due to some of the low-level argument handling of git, and 
nobody has bothered handling this. You could try taking it up with the main 
git developer list <http://vger.kernel.org/vger-lists.html#git>, but I'm not 
sure they'll see the need for it :)

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to