git分支从B合并到A但是在B分支有1和2的代码怎么去掉2的代码只合并1的代码从B到A上?
phpcn_u1582
phpcn_u1582 2017-05-02 09:39:37
0
3
714

代码有 B分支A分支
现在要把B分支合并到A分支
B分支开发1的代码和开发2的代码。
开发1和开发2的提交代码历史:1->2->1->1
问题是怎么去掉开发2的代码只把开发1的代码合并到A分支上?

求大神指点~~

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