DEV Community

Discussion on: How do you name your git branches?

Collapse
 
david_j_eddy profile image
David J Eddy

I do a mix of Git-Flow branch naming and separators for ID and key.

Template:
{type}/{ticket number / name / indicator}/{max 5 word desc}

Exp:
feature/dev-27/user_profile_images_update
hotfix/blog-17/left_menu_padding
bug/project-2486457/header_bannder_width_fix

The integer related to the ticket number in whatever ticket tracking program is used. JIRA, OneProject, etc. Then a short desc. to indicate what the change set relates to.