我正在尝试通过它创建diff
补丁apply
。我的补丁有新文件并且在apply
我收到错误之后。
git diff master origin/master > patch1.diff
git apply patch1.diff -v
Checking patch test3...
error: test3: No such file or directory
修补:
diff --git a/test3 b/test3
deleted file mode 100644
index df6b0d2..0000000
--- a/test3
+++ /dev/null
@@ -1 +0,0 @@
-test3
我做错了什么或git apply
没有创建新文件?