Skip to content

Git – Branch Naming

Format

<type>/<ticket-id>-<short-description>

Examples

Type Example
Feature feature/USER-123-add-login-page
Bug fix fix/PAY-456-null-pointer-checkout
Hotfix hotfix/SEC-789-xss-vuln-header
Release release/v2.3.0

Rules

  • Always include the ticket number
  • Use kebab-case — no spaces, no camelCase
  • Keep it short but descriptive
  • Delete branches after merging

Incorrect Examples

my-branch
newFeature
fix_thing
urgent