Skip to content

Commit 8e48638

Browse files
author
Raffael Herrmann
committed
Add .gitattributes for consistent LF line endings
- Configure Git to use LF (Unix) line endings for all text files - Set text=auto for automatic line ending normalization - Explicitly set eol=lf for web development files (.js, .html, .css, .json, etc.) - Mark binary files appropriately (.png, .jpg, .svg, etc.) - Ensure cross-platform consistency for development team
1 parent c98f8f4 commit 8e48638

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.gitattributes

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Set default behavior to automatically normalize line endings
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout
6+
*.md text
7+
*.txt text
8+
*.html text
9+
*.css text
10+
*.js text
11+
*.json text
12+
*.yml text
13+
*.yaml text
14+
15+
# Declare files that will always have LF line endings on checkout
16+
*.md eol=lf
17+
*.txt eol=lf
18+
*.html eol=lf
19+
*.css eol=lf
20+
*.js eol=lf
21+
*.json eol=lf
22+
*.yml eol=lf
23+
*.yaml eol=lf
24+
*.sh eol=lf
25+
*.dockerfile eol=lf
26+
27+
# Denote all files that are truly binary and should not be modified
28+
*.png binary
29+
*.jpg binary
30+
*.jpeg binary
31+
*.gif binary
32+
*.ico binary
33+
*.svg binary
34+
*.woff binary
35+
*.woff2 binary

0 commit comments

Comments
 (0)