DEV Community

Discussion on: Git branch naming conventions

Collapse
 
moopet profile image
Ben Sinclair

I find using "categorical" prefixes useful. For example, with git-flow, it checks for existing branches starting with (conventionally) hotfix/ to ensure you're not trying to start a second one without closing the first.

Collapse
 
szabgab profile image
Gabor Szabo

Yeah, putting some category name at the beginning of the branch-name and then using a slash to separate it from the rest of the name seems to be a nice practice. It gives the feeling of folder even if they are just names.

feature/123-some-feature
bugfix/785-some-bug
hotfix/981-leaking-passwords