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
[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 firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at