ZapKit

Git branch name generator

Name branches consistently from a ticket or task title, with a type prefix, the ticket ID and no characters that git or your CI dislike.

What is a git branch naming convention?

A branch naming convention is an agreed pattern for naming git branches, usually a type prefix such as feature/ or fix/, an optional ticket ID and a short description in kebab-case. Consistent names make it clear what each branch is for and let automation link branches to tickets.

Paste one or more task titles and choose the prefix or let it be guessed, add a ticket ID, and pick the separator and maximum length. Each title becomes a clean branch name, ready to copy.

How to use the Git branch name generator

  1. 1.Paste task titles

    One per line, straight from your tracker.

  2. 2.Set prefix, ticket and length

    Or let the prefix be guessed from the wording.

  3. 3.Copy the names

    Then run git switch -c <name>.

Example: three tickets

Titles pasted from a tracker:

Fix login redirect when session expires
fix/login-redirect-when-session-expires
Add CSV export to the reports page
feature/add-csv-export-to-the-reports-page
Upgrade Next.js to 16 & remove old flags
chore/upgrade-next-js-to-16-remove-old-flags

Consistent names, with prefixes chosen from the wording.

Clean, predictable names

Titles are lowercased, accents are removed and anything that isn't a letter or digit becomes a hyphen or underscore, so names are safe in git, URLs and CI scripts. A first word that repeats the prefix is dropped, so "Fix login" becomes fix/login-… rather than fix/fix-login-….

The prefix is guessed from words like fix, bug, docs, refactor or upgrade, and defaults to feature/. Names longer than the limit are cut at a word boundary; 63 characters suits tools that use branch names in hostnames.

Frequently asked questions

Where does the ticket ID go?

Right after the prefix, in capitals: fix/ZAP-42-login-redirect…

Why limit the length?

Long names get cut off in tools and can break preview deployment URLs.

Can I use underscores?

Yes. Choose Underscore as the separator.

Does it create the branch?

No. Copy a name and run git switch -c with it.

More Developer tools