Re: Branch name with space
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Dec 2, 2008, 18:03 UTC
- Message-ID
- <20081202180344.GW23984@spearce.org>
- In-Reply-To
- <4935719A.8000705@distributel.ca>
Le <le_wen@distributel.ca> wrote:
Show 5 quoted lines
> 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.