1

After read this: What are some examples of commonly used practices for naming git branches? I think I should create new branch from master, naming it as "fix_[issue number]" for it's easier to know what is the branch for by branch name.

But my colleague think it's better to keep branch counts low, and he doesn't think branch name is a issue.

Am I using git branch wrong, or is it okay to use git branch in different ways?

sunpochin
  • 328
  • 1
  • 4
  • 17
  • 1
    Note if you delete the branch after merging it (which you typically would do), it doesn't matter if you reuse the same name. No one knows or cares what the previously used branch names were once it's merged and deleted. So, name the branch whatever makes sense right now. – TTT Mar 10 '21 at 17:22

1 Answers1

3

Don't forget that the "number of branches" isn't absolute in a distributed version control system like Git.

Your local repo can use as many branches at it needs.
And yet:

For other rules and suggestions: "Too many live branches in a project".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250