Skip to content

Commit 49ab206

Browse files
authored
fix:add binary attributes for image files to prevent line ending conversion (#459)
Signed-off-by: OneZero-Y <aukovyps@163.com>
1 parent b172c3d commit 49ab206

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
# Auto detect text files and perform LF normalization
22
* text=auto
33
* text eol=lf
4+
5+
# Binary files - treat as binary, no line ending conversion
6+
*.png binary
7+
*.jpg binary
8+
*.jpeg binary
9+
*.gif binary
10+
*.ico binary
11+
*.svg binary

0 commit comments

Comments
 (0)