git resolving previous merge conflicts [duplicate]

梦想与她 提交于 2019-12-25 05:47:09

问题


Once I've merged my branch with another. I haven't resolve the conflicts that were made. I have been merging till recently, till I figured out that lots of "<<<<" were added to my code. I believe it's related to the unresolved merge conflicts. I try to solve the conflicts in my last merge with "theirs" strategy. Unfortunately, it didn't have any effect on the previous unresolved conflicts. How do I resolve all the unresolved conflicts with the "theirs strategy"?

Thanks!


回答1:


try reset the code then merge the code again.

say you are on branchA and want to merge branchB

git reset --hard branchA

git merge -X theirs branchB



来源:https://stackoverflow.com/questions/41649147/git-resolving-previous-merge-conflicts

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