Dev Utils

Git Branch Name

Generate standardized git branch names from descriptions.

How to use it

  1. Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type Git Branch Name and press Return.
  2. Paste or type your text into Input.
  3. Adjust the Options on the right if you need to. The defaults are listed below.
  4. Press Generate, or ⌘↵.
  5. Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.

Options

OptionValuesDefault
Branch typeBranch type prefixfeature/, bugfix/, hotfix/, release/, chore/, docs/, refactor/, test/, Nonefeature/
Word separatorCharacter between words-, _, /-
LowercaseConvert to lowercaseOn or offOn
Include dateAdd date prefix (YYYY-MM-DD)On or offOff
Username prefixOptional username prefixText (e.g. e.g., jsmith)—
Max lengthMaximum branch name length20–10050

Example

Real output from Devly, with the default options.

Input
Fix login redirect when the session expires
Branch name
feature/fix-login-redirect-when-the-session
Length
43 characters
Create command
git checkout -b feature/fix-login-redirect-when-the-session
Alternatives
bugfix/fix-login-redirect-when-the-session-expires
hotfix/fix-login-redirect-when-the-session-expires

From Terminal

With the free command-line tool installed:

Terminal
devly gitbranch "Fix login redirect when the session expires"
# or pipe text in
pbpaste | devly gitbranch

Quick Switch also finds it by: git, branch, name, feature, jira, issue.

More Dev Utils tools