Skip to content

Instantly share code, notes, and snippets.

View chrisleekr's full-sized avatar

Chris Lee chrisleekr

View GitHub Profile
@jefffederman
jefffederman / naming-git-branches.md
Last active March 3, 2025 22:43
Naming `git` branches

Naming git branches

tldr; {type}/{group[optional]}/short-form-of-what-it-does

HCM developers consistently use dash-delimited branch names. About half also use f/ and b/ prefixes ('feature' and 'bug', respectively).

I suggest we continue our current practices, specifically:

  • a branch should start with a prefix indicating its type: feature/, bug/, chore/, or hotfix/
  • prefer the whole word to the one letter abbreviation, the clarity outweighs the cost of the extra characters