使用删除的文件创建git format-patch

时间:2018-09-27 00:28:43

标签: git github patch git-rm

我正在尝试为fork创建补丁,以便它可以包含上游的最新提交。 冲突是,分支中存在一个已被编辑的文件夹,并且该文件夹在上游已被完全删除。因此,在使用git rm删除文件夹以解决冲突之后,我使用git format-patch创建了补丁。但是当我应用补丁时,会出现错误

error: patch failed: install.sh
error: install.sh: patch does not apply
Patch failed at 0004
Use 'git am --show-current-patch' to see the failed 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". 

对于包含已删除文件夹更改的补丁程序,我只会收到错误消息。 解决fork与上游之间已删除的文件夹冲突并创建补丁的正确方法是什么?

0 个答案:

没有答案