Git Branch Name Generator
NewTurn a change type, optional ticket number, and short description into a clean, conventional, kebab-case git branch name plus a ready-to-run checkout command.
—
Ready-to-run command
—
Git branch names can't contain spaces, most punctuation, or consecutive dots — this tool lowercases your description, replaces anything unsafe with hyphens, and trims duplicate/leading/trailing hyphens so the result is always a valid, readable branch name.
Frequently Asked Questions
What branch naming convention does this follow?
It follows the common "type/ticket-description" pattern used by many teams (e.g. `feature/jira-1234-add-dark-mode`), which groups branches by purpose in `git branch -a` listings and makes it easy to scan for a specific ticket.
Why does it replace spaces and punctuation with hyphens?
Git branch names can't contain spaces and disallow several punctuation characters (like `~`, `^`, `:`, consecutive dots, and trailing slashes), so converting everything to lowercase, hyphen-separated words guarantees a valid ref name regardless of what you type.
Do I have to include a ticket number?
No — the ticket field is optional. Leave it blank and the generator will build a branch name from just the type and description, e.g. `fix/broken-login-redirect`.
Can I add my username as a prefix instead of a type?
Yes — filling in the username field prepends it before the type segment (e.g. `jsmith/feature/add-dark-mode`), which some teams use to namespace branches per contributor.
Does this actually create the branch in my repository?
No — it only generates the name and a copyable `git checkout -b <name>` command; running that command in your own terminal is what actually creates the branch.