Disable auto-replaces spaces with dashes

SourceTree 2.3.5 for mac has added auto replacing of spaces with hyphens in branch names.

Is there any way to disable this 'functionality'?

2 answers

1 accepted

1 vote
Answer accepted

Hi Beau, the developers replied and told me it's expected: BbC's REST API has rules when creating repos or branches and has a limitation around spaces so we automatically replace them now. 

Replacing spaces with dashes was also a much requested feature. If you'd like to change this, you can submit a Feature request at jira.atlassian.com by clicking the Create button.

Hope this helps!


0 votes

Hi Beau, currently it's not possible to disable that functionality. Branches can not contain spaces (as per the official git documentation), in previous SourceTree versions you'd get an error if you tried to do create a branch with a space on it and the branch would not be created.

Hope this helps!


This is for Mercurial, not git, and was only introduced in the latest release (2.3.5 for Mac).

We've been using branch names with spaces for ever with no issues.

Hi Beau, thanks for clarifying. You didn't specify which DVCS were you using and I assumed it was Git. Regarding Mercurial, I've contacted the developers to ask them if this new behavior is expected to happen with Hg as well or was intended only for Git, I'll let you know once I get a response. 



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Jan 17, 2019 in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

798 views 10 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you