Branch Naming Strategies
A consistent branch naming convention makes your repository readable, searchable, and enables CI/CD automation. Good names communicate purpose at a glance and help the entire team stay organized.
01.Standard Prefix Conventions
Use prefixes to categorize: feature/ for new features, fix/ or bugfix/ for bugs, hotfix/ for urgent production issues, release/ for release preparation, chore/ for maintenance and tooling, docs/ for documentation-only changes, test/ for test additions. These are conventions, not enforced rules — but most teams adopt them.
02.Rules for Great Branch Names
Always lowercase with hyphens (never underscores or spaces). Be specific: "feature/user-profile-avatar-upload" beats "feature/upload". Include ticket numbers when relevant: "feature/JIRA-420-password-reset". Avoid vague names like "test", "temp", "fix2", or "my-branch". Short enough to read, long enough to understand.
Commands
Which branch name follows best practices?