M
M
myxasa2017-03-27 12:03:54
git
myxasa, 2017-03-27 12:03:54

How to work with develop and master?

As I do now , I
initialize git init,
then I make commits (not the essence of what)
then I create a develop branch,
I start committing to develop (more branches appear that merge with develop)
in parallel, I make hotfixes in master
, when the time comes, develop is merged into the master branch
, but develop will disappear .. and it turns out from the merge point you need to create a new develop branch
, and on all screens, develop always remains
here, for example,
00eb029a.png
how to do it so that it is like on the screen?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2017-03-27
@myxasa

git flow

D
dimansf, 2020-05-13
@dimansf

To make it look like in the picture, you need to use the --no-ff flag when merge, then 2 branches will go in parallel, and will not merge into one.
There will be no fast forward, this is such a reverse rebase, if you can call it that.

Branches:
*master
dev
> git merge --no-ff dev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question