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>
b7c55400755brian committed on 5/27/2025, 5:10:20 PM· committed by GitHubparentb01f7c8
1 file changedLine totals unavailable