Skip to content

Commit 14a08ff

Browse files
CopilotAmour1688
andcommitted
Add .gitattributes to fix Windows line ending issues
Co-authored-by: Amour1688 <[email protected]>
1 parent 30a6520 commit 14a08ff

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.gitattributes

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto
3+
4+
# Ensure these files always have LF line endings on checkout
5+
*.ts text eol=lf
6+
*.js text eol=lf
7+
*.mjs text eol=lf
8+
*.cjs text eol=lf
9+
*.jsx text eol=lf
10+
*.tsx text eol=lf
11+
*.json text eol=lf
12+
*.md text eol=lf
13+
*.yml text eol=lf
14+
*.yaml text eol=lf
15+
*.toml text eol=lf
16+
*.go text eol=lf
17+
18+
# Shell scripts should always have LF
19+
*.sh text eol=lf
20+
21+
# Windows batch files should have CRLF
22+
*.bat text eol=crlf
23+
*.cmd text eol=crlf
24+
25+
# Binary files should not be touched
26+
*.png binary
27+
*.jpg binary
28+
*.jpeg binary
29+
*.gif binary
30+
*.ico binary
31+
*.svg binary
32+
*.woff binary
33+
*.woff2 binary
34+
*.ttf binary
35+
*.eot binary
36+
*.zip binary
37+
*.tar.gz binary
38+
*.tgz binary
39+
*.exe binary
40+
*.dll binary
41+
*.so binary
42+
*.dylib binary

0 commit comments

Comments
 (0)