E
E
Ernest Faizullin2020-12-20 03:22:42
git
Ernest Faizullin, 2020-12-20 03:22:42

Why is it customary to start new branches from develop according to gitflow?

What if there is an unfinished feature in develop?

From the master it is necessary to create new branches.

What did I miss?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-12-20
@AleksandrB

Gitflow in this case implies that the master will have release versions. When you have finished the sprint, everything is tested, prepared for sale and uploaded to the git. In turn, develop is a development branch. The code in develop may not be fully tested, it may contain crutches. He is an intermediate link between releases. If you have only one master branch, it will be much more difficult for you to roll back and see what you have on the sale. It is clear that a completely unfinished code should not get into develop. If necessary, it should be covered by auto tests, written with high quality and reviewed. But the code requirements are less stringent.

V
Vitsliputsli, 2020-12-20
@Vitsliputsli

Gitflow has different implementations, but most often yes, building from dev is meant. The reason is simple: dev is a development branch, there may already be implemented features that are not yet in master, it is better to immediately start development with a newer version than to resolve conflicts during the merge later.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question