BitBucket and Merge Conflicts

懵懂的女人 提交于 2019-12-24 02:22:08

问题


I have a code source that has 3 branches to it:

master
Branch 1
Branch 2

I'm working on Branch 2 while another programmer is working on Branch 1.

I have recently pushed my changes to my branch after having pulled any changes locally. Then I merged my branch with the master.

I'm now trying to merge his branch with the master but get a HUGE list of conflicts. Mostly things I added and synced to the master are conflicting with lines he added in the same files.

How do I decide which changes to keep of his so I can merge it all and bring it all up to date?

I tried creating a pull request inside bitbucket but couldn't get the hang of it. I tried inside that pull request editing X files and placing the Code I knew was good there, but the conflicts remained after edit.


回答1:


  • Your branch merged fine because there was no changes on master between you creating branch1 and you merging it back
  • Since branch2 also originated from master - merge master into branch2 to keep it up-to-date
  • Once branch2 is up-to-date, you can easily merge it back to master


来源:https://stackoverflow.com/questions/25514296/bitbucket-and-merge-conflicts

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!