Skip to content

Commit 18b236a

Browse files
committed
chore: add .gitattributes to prevent binary asset corruption on Windows
core.autocrlf=true was causing git to apply CRLF normalization to image files, making all assets show as modified on Windows checkouts. Mark binary types (png, jpg, gif, webp, ico) as binary to prevent this.
1 parent 3de4040 commit 18b236a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Treat image files as binary — prevents CRLF mangling on Windows
2+
*.png binary
3+
*.PNG binary
4+
*.jpg binary
5+
*.jpeg binary
6+
*.gif binary
7+
*.webp binary
8+
*.ico binary
9+
10+
# SVG is XML/text — normalize line endings to LF
11+
*.svg text eol=lf

0 commit comments

Comments
 (0)