Developer tools

Git Branch Name Generator

Git Branch Name Generator

Turn a ticket and title into a clean, valid git branch name, and check any name against git's rules.

About this tool

About Git Branch Name Generator

Paste an issue title and its ticket key and get a branch name your team can read at a glance, such as feature/proj-142-add-password-reset. Choose the type prefix (feature, bugfix, hotfix, release, chore and others), kebab-case or snake_case, a slash or hyphen after the type, an optional owner prefix, lower case or an upper-case ticket key, and a maximum length that cuts at a word boundary. Accented letters are transliterated (café becomes cafe), punctuation and emoji are dropped, and filler words can be removed to keep names short. Several alternative styles are listed for teams with other conventions, each with a copy button, along with ready git switch -c and git push -u commands. The checker below tells you whether any branch name is valid under the rules of git check-ref-format, with a reason for each problem (double dots, spaces, a trailing .lock, characters like ~ ^ : ? * [ and more) and warnings about case clashes on macOS and Windows. Optionally, paste an issue and AI suggests the type, ticket and summary using your own key.

Built and maintained by Abhi JainUpdated

How to Name a Git Branch

  1. 1

    Enter the details

    Choose the Type, enter the Ticket / issue and paste the Title or summary.

  2. 2

    Pick a style

    Set the Word separator, After type, Max length and Lower case options, or copy one of the Other styles.

  3. 3

    Copy and check

    Copy the name or the git switch -c command. Paste any existing name into Check a branch name to validate it.

Git Branch Name Generator: questions and answers

What characters are not allowed in a git branch name?

git rejects spaces, control characters and ~ ^ : ? * [ \, two dots in a row (..), the sequence @{, a name starting with - or ending with . or /, consecutive slashes, any path segment starting with a dot or ending with .lock, and the name @ on its own.

What is a good branch naming convention?

A common pattern is type/ticket-short-description in lower case, for example feature/proj-142-add-login or bugfix/321-fix-null-avatar. The type groups branches in tools, the ticket links to the issue tracker, and lower case avoids clashes on case-insensitive file systems.

Can a branch name contain a slash?

Yes. Slashes create a hierarchy such as feature/login. However, you cannot have both a branch called feature and one called feature/login, because git stores branches as files and folders.

How long can a git branch name be?

git itself has no small limit, but file systems cap a path component at about 255 bytes and many tools truncate long names in their UI. Keeping names under 60 characters makes them easy to read and type.

How do I rename a branch?

Run git branch -m new-name on the branch. If it was pushed, push the new name with git push -u origin new-name and delete the old one with git push origin --delete old-name.

Can AI suggest a branch name from an issue?

Yes, optionally. Click AI and paste the issue or describe the task; it suggests the type, ticket and a short English summary, and the name is built with your current options and checked against git's rules. Only what you paste is sent. It uses the AI provider and key you connect in AI settings (Claude, OpenAI, Gemini, DeepSeek, OpenRouter or a compatible endpoint), and the request goes straight from your browser to that provider; KissThePDF has no server in between.