Git Merge - 二进制文件冲突解决方案

时间:2015-04-01 16:03:23

标签: git binaryfiles git-merge merge-conflict-resolution git-merge-conflict

如何在git中合并操作期间解决二进制文件冲突解决方案?这是我到目前为止所做的:

git checkout master
git fetch origin
git merge working_branch

... [Conflicts] ...

git status
...
Unmerged paths:
        both modified:   Path/file.dll
        ...

我希望将版本保留在working_branch中并丢弃master中的版本。我该怎么做?

1 个答案:

答案 0 :(得分:3)

今天早些时候弄清楚:

git checkout --theirs Path/file.dll
git add Path/file.dll
git commit -m "Resolved merge conflict by checking out file from working_branch and adding it to the master"