{"thread":{"id":"16562","subject":"Branch name with space","startedAt":"2008-12-02T17:34:18Z","lastAt":"2008-12-02T18:03:44Z","messageCount":2,"participants":["Le","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"96971","messageId":"4935719A.8000705@distributel.ca","threadId":"16562","inReplyTo":null,"subject":"Branch name with space","fromName":"Le","fromEmail":"le_wen@distributel.ca","sentAt":"2008-12-02T17:34:18Z","receivedAt":"2008-12-02T17:34:18Z","isPatch":false,"sender":{"key":"le_wen@distributel.ca","avatar":null},"body":"Hi, there,\n\nI tried to rename a branch to a new name with space in it. It complained :\ngit-branch -M 'test 1' or test\\ 1\nfatal: Invalid branch name: refs/heads/test 1\n\nIs there a way the get round this problem?\n\nThanks!\n\nLe\n"},{"id":"96973","messageId":"20081202180344.GW23984@spearce.org","threadId":"16562","inReplyTo":"4935719A.8000705@distributel.ca","subject":"Re: Branch name with space","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-12-02T18:03:44Z","receivedAt":"2008-12-02T18:03:44Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Le <le_wen@distributel.ca> wrote:\n> I tried to rename a branch to a new name with space in it. It complained :\n> git-branch -M 'test 1' or test\\ 1\n> fatal: Invalid branch name: refs/heads/test 1\n>\n> Is there a way the get round this problem?\n\nDon't put spaces in branch names.  They aren't permitted.  Use\nan underscore ('_') or a hypen ('-').\n\n-- \nShawn.\n"}]}