DEV Community

Discussion on: How do you name your git branches?

khalyomede profile image
Khalyomede • Edited on

At my company we use an alternative app (that looks like Trello), and we name our branches according to the task number in the URL (so if this is, we will git checkout -b t38, the "t" standing for task. We tried to name our branches by the goal of the fix/feature, but it quickly become unefficient because you need to think of a good name to illustrate your branches, and chances are that your branches will evolve and not only do what you intended in the begining...

So instead we put a link in the PR description in order to view the full spec of the issue or the feature. Maybe the best would have been to create git issues instead of Trello-like task, but this is already better and scalable for us right now.