4

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

git checkout master
git fetch origin
git merge working_branch

... [Conflicts] ...

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

我想将版本保留在 中working_branch并丢弃master. 我该怎么做呢?

4

1 回答 1

9

今天早些时候想通了:

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"
于 2015-04-01T20:04:56.693 回答