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

前端 未结 4 1366
轮回少年
轮回少年 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:32

    You first need to add the other developer repository as a remote.

    git remote add otherrep uriToOtherRep
    

    Then you fetch changes from there

    git fetch otherrep
    

    And then you merge the branch from the remote repository into yours

    git merge otherrep/branchname
    

    Happy merging!

提交回复
热议问题