Web lists-archives.com

Re: Branch name support & character

Andrew Ardill <andrew.ardill@xxxxxxxxx> 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

> That being said, I would advise not using & in branch names,
> specifically because it is a special character in shells.

Good advice.