git - 如何将一个分支的修改同步到另一个分支?
淡淡烟草味
淡淡烟草味 2017-05-02 09:23:47
0
3
727

我有branch A(01版本),在branch A(01版本)上开了分支branch B(01版本),这个时候我修改了branch A(01->02版本),请问我如何将修改的结果带到branch B?

求大神解答,不要告诉我删了B然后才重新分支= - =

淡淡烟草味
淡淡烟草味

reply all(3)
巴扎黑
git checkout B
git merge A
阿神

Correct solution on the first floor
Just merge branch A directly on branch B.

習慣沉默

You can merge branches or use rebase to add the modified parts of branch a to b, it depends on whether you need to merge or not

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