Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想拉一个项目并使用我的更改解决合并冲突。我怎样才能做到这一点?
使用带有ours选项的递归合并策略:
git merge -s recursive -X ours branch_to_merge
或者
git pull -s recursive -X ours
对于任何冲突,它将使用来自您的分支的大块。有关更多详细信息,请参阅git merge手册页。