Skip to content

Commit 69dbe0a

Browse files
committed
chore: add standard .gitattributes for consistent line endings
1 parent 38946ff commit 69dbe0a

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.gitattributes

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Normalize line endings: LF in the repository, auto-convert on checkout.
2+
* text=auto eol=lf
3+
4+
# POSIX shell scripts stay LF even on Windows checkouts.
5+
*.sh text eol=lf
6+
*.bash text eol=lf
7+
8+
# Native Windows scripts use CRLF.
9+
*.bat text eol=crlf
10+
*.cmd text eol=crlf
11+
*.ps1 text eol=crlf
12+
13+
# Binary files: never convert.
14+
*.png binary
15+
*.jpg binary
16+
*.jpeg binary
17+
*.gif binary
18+
*.ico binary
19+
*.webp binary
20+
*.pdf binary
21+
*.zip binary
22+
*.gz binary
23+
*.tar binary
24+
*.7z binary
25+
*.woff binary
26+
*.woff2 binary
27+
*.ttf binary
28+
*.eot binary
29+
*.mp4 binary
30+
*.mov binary
31+
*.mp3 binary
32+
*.dll binary
33+
*.exe binary
34+
*.so binary
35+
*.dylib binary

0 commit comments

Comments
 (0)