search

Home  >  Q&A  >  body text

git - How to sync changes from one branch to another?

I have branch A (version 01), and branch B (version 01) was opened on branch A (version 01). At this time, I modified branch A (version 01->02). How can I Are the modified results brought to branch B?

Please answer me, don’t tell me to delete B and then re-branch = - =

淡淡烟草味淡淡烟草味2868 days ago794

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑2017-05-02 09:25:47

    git checkout B
    git merge A

    reply
    0
  • 阿神

    阿神2017-05-02 09:25:47

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

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-02 09:25:47

    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

    reply
    0
  • Cancelreply