Git Branch Naming Conventions: Best Practices for Teams

4 min read

A consistent branch naming convention helps teams understand what each branch does at a glance.

Common Prefixes

PrefixPurposeExample
feature/New featurefeature/user-authentication
fix/ or bugfix/Bug fixfix/login-redirect-loop
hotfix/Urgent production fixhotfix/payment-crash
release/Release preparationrelease/2.1.0
chore/Maintenance taskschore/update-dependencies
docs/Documentationdocs/api-reference
refactor/Code refactoringrefactor/auth-module

Format: kebab-case

Always use lowercase and hyphens. Git branches are case-sensitive, and Feature/Login vs feature/login causes confusion.

Including Ticket Numbers

feature/PROJ-123-user-auth or fix/PROJ-456-cart-total

Convert

kebab-case converter or slug generator. Hub.