1

次のパッチがあります

diff --git a/.htaccess b/.htaccess
index 4298b10..aa3d50d 100644
--- a/.htaccess
+++ b/.htaccess
@@ -364,6 +364,15 @@
             Require all denied
         </IfVersion>
     </Files>
+    <Files patches>
+        <IfVersion < 2.4>
+            order allow,deny
+            deny from all
+        </IfVersion>
+        <IfVersion >= 2.4>
+            Require all denied
+        </IfVersion>
+    </Files>

 # For 404s and 403s that aren't handled by the application, show plain 404 response
 ErrorDocument 404 /pub/errors/404.php

2 回目に git apply を使用すると、パッチの適用に失敗せず、代わりに同じ行に追加されます。これを防ぐ方法はありますか?

また、 git apply -R を使用すると、追加されたインスタンスの 1 つが削除されます。

4

1 に答える 1