Re: Branch name support & character
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 8, 2017, 01:18 UTC
- Message-ID
- <xmqqk21a0yzi.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAH5451m9asxzaOEzQ2Jjk9Ly97GVnb7DV0uZS=96B=yHCYLWCw@mail.gmail.com>
Andrew Ardill <andrew.ardill@gmail.com> writes:
Show 5 quoted lines
> 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.