Git Branch Name Generator
Turn task titles and ticket keys into valid Git branch names
Generated in your browser. Issue URLs are only read for the key, never opened. Only options are remembered.
What the generator does
It turns a task description and an optional ticket key into a Git branch name such as fix/AUTH-231/oauth-callback-race-condition. Presets for Conventional, Git Flow, GitHub Flow, Jira and Linear set the branch type list and layout, and every option stays editable. You also get two or three alternatives and ready-to-copy git switch, git checkout and git push commands.
How the name is cleaned
Text is normalized with Unicode NFKD so accents are removed, letters like ß, æ and ø are transliterated, and letters are lowercased unless you keep the case. Spaces and punctuation become separators, characters Git forbids are removed, repeated separators are collapsed, and long descriptions are cut at a word boundary. Each change is listed with the reason, so nothing is modified silently.
Git rules checked
The final name is checked against git check-ref-format: no spaces, control characters, ~ ^ : ? * [ or backslash, no .., no @{, not the single character @, no leading or trailing slash or //, no part starting with a dot or ending with .lock, and no trailing dot. Branch rules add no leading - and not HEAD, and the name must be valid as refs/heads/<name>.
Limitations and privacy
The tool does not check whether a branch already exists, does not read your repository and does not know your team conventions beyond the presets. Issue URLs are only parsed for the key; nothing is fetched. The description and ticket stay in memory and are not saved; only the options are remembered in this browser.
Frequently asked questions
- Which characters are not allowed in Git branch names?
- Git rejects spaces, control characters, tilde, caret, colon, question mark, asterisk, opening bracket and backslash, two consecutive dots, an at sign followed by an opening brace, a path part that starts with a dot or ends with .lock, a leading or trailing slash or a double slash, and a trailing dot. Branch names also cannot start with a dash or be HEAD. The generator removes or replaces each of these and lists the reason.
- Is my task description or issue URL sent anywhere?
- No. The branch name is generated in your browser. An issue URL is only parsed to read the key; it is never opened or fetched. The description and ticket are not saved; only your preset and options are remembered in this browser.
- Should I use git switch or git checkout?
- git switch -c creates and switches to the new branch and is available since Git 2.23. git checkout -b does the same on older Git versions. After your first commit, git push -u origin with the branch name pushes it and sets the upstream so later pushes and pulls need no arguments.
