# git_ui: Replace spaces with hyphens in new branch names \(\#27873\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b7c5540075bb4a0b358e0ce88d1f340195797de4)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b7c5540075bb4a0b358e0ce88d1f340195797de4

Requested commit: b7c5540075bb4a0b358e0ce88d1f340195797de4

Commit: b7c5540075bb4a0b358e0ce88d1f340195797de4

Tree: 85e23ca3a846c3e423ea005fc5f254d84ea21531

Author: 5brian

Committer: GitHub

## Message

```
git_ui: Replace spaces with hyphens in new branch names (#27873)

This PR improves UX by converting spaces to hyphens, following branch
naming conventions and allowing users to create branches without
worrying about naming restrictions.

I think a few other git tools do this, which was nice.



![image](https://github.com/user-attachments/assets/db40ec31-e461-4ab3-a3de-e249559994fc)

Release Notes:

- Updated the branch picker to convert spaces to hyphens when creating
new branch names.

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
```

## Parents

- [b01f7c848b65a6771ad2af277eec2f18550b181a](https://git.cafe/gitcafe/zed/commit/b01f7c848b65a6771ad2af277eec2f18550b181a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b7c5540075bb4a0b358e0ce88d1f340195797de4?format=markdown)
