문제

I make a branch (b1) from develop branch

git checkout -b b1

and make some commmits over b1

at same time, make some commits over develop, when I try merge the commit of develop over b1

git merge develop

the merge editor is open, and a no Fast-forward is make

d25ef61 Merge branch 'develop' into b1

why ?

도움이 되었습니까?

해결책

A fast-forward merge happens when there are no new commits on the base branch, so that the commits you're merging can be appended directly.

Since you want to merge two different subtrees of commits together, you need a merge commit.

Alternatively, you can use git rebase to reproduce the new commits onto the base branch.
This will create a separate copy of each commit; use with caution.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top