Git Branch Name Generator
Turn a ticket ID and a short description into a clean, valid Git branch name like feature/PROJ-123-add-login-page.
● Your files are processed locally in your browser and are not uploaded to our servers.
How to use the branch name generator
- Choose the type of work: feature, fix, bugfix, hotfix, release, chore, docs, refactor or test.
- Add the ticket ID from your tracker (Jira, Linear, GitHub issue…) if you use one, for example PROJ-123.
- Write a short description in plain words: “Add login page with Google sign-in”.
- Adjust the separator, the case and the maximum length, then copy the branch name — or the ready-made
git switch -ccommand.
Accents are removed, words are joined with hyphens, small filler words are dropped from long descriptions, characters Git refuses are removed, and the name is cut at a whole word to fit the length you chose.
Git branch naming convention
The most common convention is type/TICKET-short-description, all lowercase with hyphens:
feature/proj-123-add-login-pagefix/proj-456-crash-on-empty-carthotfix/proj-789-payment-timeoutchore/update-dependencies
The prefix groups branches by purpose (many Git interfaces show them as folders), and the ticket ID links the branch to its task — Jira, GitHub and GitLab can then connect commits and pull requests automatically.
Common branch prefixes
| Prefix | Use it for |
|---|---|
feature/ | A new feature or improvement |
fix/ or bugfix/ | A bug fix in the normal development cycle |
hotfix/ | An urgent fix for production |
release/ | Preparing a version, e.g. release/2.4.0 |
chore/ | Maintenance: dependencies, build, configuration |
docs/ | Documentation only |
refactor/ | Code changes that don't change behavior |
test/ | Adding or fixing tests |
These match the commit types of Conventional Commits, so branch and commit names stay consistent — see the Git Commit Message Generator.
Git's rules for branch names
Git (git check-ref-format) refuses branch names that contain:
- spaces, or the characters
~ ^ : ? * [ \ - two dots in a row
.., or the sequence@{ - a name starting with
-, ending with/,.or.lock, or equal to@
There is no fixed length limit, but long names are hard to read in terminals and tools: aim for under 50–60 characters.
Useful commands
| Action | Command |
|---|---|
| Create and switch to a branch | git switch -c feature/proj-123-add-login |
| Rename the current branch | git branch -m new-name |
| Push it and track it | git push -u origin feature/proj-123-add-login |
| Show the current branch | git branch --show-current |
More commands are in the Git Command Generator.
FAQ
Are Git branch names case-sensitive?
Yes for Git, but on Windows and macOS (case-insensitive file systems) Feature/x and feature/x can collide. That's why lowercase names are recommended.
Slash or hyphen after the type?
The slash (feature/…) is the most common and groups branches in tools. Note that you can't have both a branch feature and feature/x.
Should I include the ticket ID?
If your team uses a tracker, yes: it makes the branch searchable and links it to the task automatically in Jira, GitHub or GitLab.
Can I use my own language in the description?
Yes. Accents are removed so the name works everywhere (é → e), but most teams write branch names in English.