git:补丁不适用 [英] git: patch does not apply
本文介绍了git:补丁不适用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个名为my_pcc_branch.patch的补丁。
I have a certain patch called my_pcc_branch.patch.
当我尝试应用它时,我收到以下消息:
When I try to apply it, I get following message:
$ git apply --check my_pcc_branch.patch
warning: src/main/java/.../AbstractedPanel.java has type 100644, expected 100755
error: patch failed: src/main/java/.../AbstractedPanel.java:13
error: src/main/java/.../AbstractedPanel.java: patch does not apply
这是什么意思?
我该如何解决这个问题问题?
How can I fix this problem?
推荐答案
msysgit@googlegroups.com邮件列表中的Johannes Sixt建议使用以下命令行参数:
Johannes Sixt from the msysgit@googlegroups.com mailing list suggested using following command line arguments:
git apply --ignore-space-change --ignore-whitespace mychanges.patch
这解决了我的问题。
这篇关于git:补丁不适用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文