How do I merge another developer's branch into mine?

前端 未结 4 1376
轮回少年
轮回少年 2021-01-30 03:11

I am relatively new to git. Our organization uses a Fork & Pull Model for managing changes to the master branch. Each developer forks the master and branches from their fork

4条回答
  •  终归单人心
    2021-01-30 03:35

    Let's say you are currently working on branch feature/feature_a and you want to merge the changes made in another branch called feature/feature_b to feature/feature_a. The following commands should do the trick:

    git checkout feature/feature_b
    git pull
    git checkout feature/feature_a
    git merge feature/feature_b
    

提交回复
热议问题