DEV Community

Discussion on: How do you name your git branches?

Collapse
 
6temes profile image
Daniel • Edited

I have a little script that takes the title of a Github Issue and kebab_cases it. I also prefix the Issue number, so all our branches are like:

5634-add-watever-to-watever
5670-fix-watever
5793-add-things

We use issue numbers a lot when we talk in the team, so when I want to checkout a branch, I just do git checkout the issue number and tab tab.

We do not prefix with the name of the developer because we have cases where one developer can take over the job of another developer.