When using git, every time I need to fix a bug, should I create a new branch from master ,or try to re-use a branch like "my_fix_bug" repeatly? -
after read this: git branch naming best practices think should create new branch master, naming "fix_[issue number]" it's easier know branch branch name.
but colleague think it's better keep branch counts low, , doesn't think branch name issue.
am using git branch wrong, or okay use git branch in different ways?
don't forget "number of branches" isn't absolute in distributed version control system git.
your local repo can use many branches @ needs.
, yet:
- you can push limited number of it.
- you can push local branch under different name on remote repo
for other rules , suggestions: "too many live branches in project".
Comments
Post a Comment