Answer the question
In order to leave comments, you need to log in
How to properly use Git branches?
Good afternoon.
I can create, delete, switch between branches. What branches are for - I sort of understand, but not completely.
When is the best time to use them? Is it better to use one branch for each new task or for each individual programmer?
Imagine that we have a team of backs and fronts. Some do back, others front, while it is logical. Is it better to create two branches, for all backs and for all fronts, or is it better to create a separate branch for each individual programmer? What would be the best and most convenient way?
Answer the question
In order to leave comments, you need to log in
It's simple
You have a project.
You decided to finish a new feature.
You create a branch and add a feature to it, test the result for errors if everything is ok, you merge with the main one.
The purpose of branches in this case is not to break the code that is used in production.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question