* Branch name with space
@ 2008-12-02 17:34 Le
2008-12-02 18:03 ` Shawn O. Pearce
0 siblings, 1 reply; 2+ messages in thread
From: Le @ 2008-12-02 17:34 UTC (permalink / raw)
To: git
Hi, there,
I tried to rename a branch to a new name with space in it. It complained :
git-branch -M 'test 1' or test\ 1
fatal: Invalid branch name: refs/heads/test 1
Is there a way the get round this problem?
Thanks!
Le
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Branch name with space
2008-12-02 17:34 Branch name with space Le
@ 2008-12-02 18:03 ` Shawn O. Pearce
0 siblings, 0 replies; 2+ messages in thread
From: Shawn O. Pearce @ 2008-12-02 18:03 UTC (permalink / raw)
To: Le; +Cc: git
Le <le_wen@distributel.ca> wrote:
> I tried to rename a branch to a new name with space in it. It complained :
> git-branch -M 'test 1' or test\ 1
> fatal: Invalid branch name: refs/heads/test 1
>
> Is there a way the get round this problem?
Don't put spaces in branch names. They aren't permitted. Use
an underscore ('_') or a hypen ('-').
--
Shawn.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-02 18:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 17:34 Branch name with space Le
2008-12-02 18:03 ` Shawn O. Pearce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).