From c952360e0f0366ee5762c4716abfbb666c0488a8 Mon Sep 17 00:00:00 2001 From: OneZero-Y Date: Fri, 17 Oct 2025 10:16:11 +0800 Subject: [PATCH] fix:add binary attributes for image files to prevent line ending conversion Signed-off-by: OneZero-Y --- .gitattributes | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitattributes b/.gitattributes index 130805ef..47d0d3c2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,11 @@ # Auto detect text files and perform LF normalization * text=auto * text eol=lf + +# Binary files - treat as binary, no line ending conversion +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.svg binary