Sof*_*ver 6 git cherry-pick git-cherry-pick
我试图从一个主要是二进制文件的不同分支中挑选一个提交.它看起来大部分都是成功的,除了我得到消息的一个文件:
warning: Cannot merge binary files: XXXX.so (HEAD vs. d8ef550... Add support for 32-bit apk)
error: could not apply d8ef550... Add support for 32-bit apk
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
Run Code Online (Sandbox Code Playgroud)
我可以对该文件进行'git add',但结果并不是我所期待的.我希望它是一个修改,但它结果删除了有问题的文件.我试图挑选的提交修改了一些二进制文件以及删除了一些.
所以,问题是......什么是挑选提交二进制文件的最佳方法?
Ale*_* C. 12
你可以这样做 git cherry-pick --strategy=recursive -X theirs {Imported_Commit}
(你可能需要先中止当前的樱桃选择; git cherry-pick --abort
)
归档时间: |
|
查看次数: |
2155 次 |
最近记录: |