Re: Branch name support & character
- Date: Fri, 08 Sep 2017 10:18:25 +0900
- From: Junio C Hamano <gitster@xxxxxxxxx>
- Subject: 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.