如何在git中合并操作期间解决二进制文件冲突解决方案?这是我到目前为止所做的:
git checkout master
git fetch origin
git merge working_branch
... [Conflicts] ...
git status
...
Unmerged paths:
both modified: Path/file.dll
...
我希望将版本保留在working_branch
中并丢弃master
中的版本。我该怎么做?
答案 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"