Tôi đang cố tạo bản vá theo số diff
và apply
. Bản vá của tôi có tệp mới và sau apply
Tôi gặp lỗi.Git áp dụng không tạo tệp mới?
git diff master origin/master > patch1.diff
git apply patch1.diff -v
Checking patch test3...
error: test3: No such file or directory
Patch:
diff --git a/test3 b/test3
deleted file mode 100644
index df6b0d2..0000000
--- a/test3
+++ /dev/null
@@ -1 +0,0 @@
-test3
Những gì tôi đang làm sai hoặc git apply
không tạo ra file mới?
Có lý do nào bạn không muốn sử dụng 'git format-patch' không? –
Có, một sở thích chung) –