The git branch is merged from B to A, but there are codes 1 and 2 in branch B. How to remove the code of 2 and only merge the code of 1 from B to A?
phpcn_u1582
phpcn_u1582 2017-05-02 09:39:37
0
3
723

The code has B分支 and A分支
Now we need to merge B分支 onto A分支
B分支There is development 1 code for and development 2 code.
The submitted code history of development 1 and development 2: 1->2->1->1
The question is how to remove the code of development 2 and only merge the code of development 1 into the A branch?

Please give me some advice~~

phpcn_u1582
phpcn_u1582

reply all(3)
PHPzhong

It seems that you can only create a new branch from branch A? After development is completed, go directly to branch A instead of going through branch B and then to branch A

大家讲道理

git rebase B A

Peter_Zhu

Revert 2 commits on branch B, and then do a rebase and merge

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template