我以前从未在 Git 中使用过补丁,我需要一些帮助。我正在尝试将补丁应用到 Git 存储库来测试 Wine 补丁,特别是这个补丁在这里 https://bugs.winehq.org/attachment.cgi?id=60752。所以我做了以下事情:
$ git clone git://source.winehq.org/git/wine.git
$ cd wine
$ nano patch.p1
I then pasted the content of the patch with Ctrl+Shift+Vand used Ctrl+O to save. Then I tried this:
$ git am patch.p1
Patch format detection failed.
我究竟做错了什么?我以前从未应用过补丁。
Patch format detection failed.
可能意味着您使用了错误的命令:usegit apply
代替git am
或者反过来。
See git am 和 git apply 有什么区别? https://stackoverflow.com/questions/12240154/what-is-the-difference-between-git-am-and-git-apply有关 2 之间差异的更多信息。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)