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

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 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

778 views 0 4
Read article

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