Branch names fail in boring ways: spaces, uppercase tickets, accents, a slash in the wrong place. This page builds one from a prefix, an optional ticket and a summary sentence. Prefix fix, ticket ABC-1, summary Fix URL parser becomes fix/abc-1-fix-url-parser.
Cleaning is aggressive on purpose. Letters are stripped of accents, everything that is not a letter or a digit becomes a hyphen, and the ends are trimmed. The ticket goes through the same cleaner, so ABC-1 becomes abc-1. Prefix none omits the prefix and the slash. An empty summary, or one that cleans to nothing, is an error.
The page does not create the branch. It does not talk to a remote. You copy the name into git switch -c. Prefixes are feature, fix, chore, release or none.
Prefix fix, ticket ABC-1, summary Fix URL parser.
fix/abc-1-fix-url-parser
The ticket and the summary share one cleaner, so ABC-1 cannot stay uppercase while the rest of the name is folded.
feature, fix, chore, release and none. none drops the slash as well as the word.
They are stripped to the base letter. é becomes e. A summary that is only punctuation fails, because nothing letter-like remains.
No. You get the name. git switch -c and the remote are outside this page.
The summary is cleaned, not edited for meaning. Fix URL parser contributes fix-url-parser after the ticket. Rename the summary if you do not want the word twice.