Thread (1 message) 1 message, 1 author, 2017-09-08

Re: Branch name support & character

From: Junio C Hamano <hidden>
Date: 2017-09-08 01:18:36

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help