我正在尝试应用补丁,我从http://www.winehq.org/pipermail/wine-devel/2014-May/104356.html获取.我把它复制到一个文本编辑器中,并保存为my.patch
(我需要修复电子邮件,它已被混淆).
我试着用Git应用它,但是我收到了这个错误:
sashoalm@sashoalm-VirtualBox:~/Desktop/wine-git$ git am --signoff <my.patch
previous rebase directory /home/sashoalm/Desktop/wine-git/.git/rebase-apply still exists but mbox given.
Run Code Online (Sandbox Code Playgroud)
这个神秘的错误消息让我不知道出了什么问题或我需要做些什么来使它工作.这个错误是什么意思?我该如何解决?
Cir*_*四事件 53
git am --abort
Run Code Online (Sandbox Code Playgroud)
为我工作,但git rebase --abort
没有.
发生了什么:我尝试应用补丁但它已被破坏(可能是Gmail拷贝粘贴在体内):
git am bad.patch
Run Code Online (Sandbox Code Playgroud)
而Git说:
Applying: python: fix Linetable case to LineTable in docstrings and comments
fatal: corrupt patch at line 56
Patch failed at 0001 python: fix Linetable case to LineTable in docstrings and comments
The copy of the patch that failed is found in:
/home/ciro/git/binutils-gdb/src/.git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Run Code Online (Sandbox Code Playgroud)
注意git如何给出解决方案: To restore the original branch and stop patching, run "git am --abort".
然后我显然忽略了这条消息,并立即尝试了一个固定的版本:
git am good.patch
Run Code Online (Sandbox Code Playgroud)
并得到了错误.
sas*_*alm 37
好的,事实证明我需要删除目录.git/rebase-apply
.它之后工作(或至少给我不同的错误,说电子邮件再次错误).我仍然不知道错误实际意味着什么或为什么会出现错误.
编辑:正如下面的评论所示,git am --abort
可能是解决问题的更好方法,但我还没有测试过.
归档时间: |
|
查看次数: |
36920 次 |
最近记录: |