Andrew Ardill [off-list ref] writes:
Using git checkout -b 'my&branch' works for me (single quotes around
the branch name).
Pushing to a local remote also works: git push --set-upstream
../git-test-2 'my&branch'
Thanks for sanity-checking. I was wondering if we have codepaths
that botch quoting (we shouldn't, and if there is, we should fix
it).
That being said, I would advise not using & in branch names,
specifically because it is a special character in shells.
Good advice.