Skip to content

Commit d102610

Browse files
Merge pull request #248 from bg-playground/copilot/add-gitattributes-file
Add .gitattributes to enforce LF line endings for shell scripts
2 parents 8423be4 + 677d98b commit d102610

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.gitattributes

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Force LF line endings for shell scripts (critical for Docker on Windows)
5+
*.sh text eol=lf
6+
7+
# Force LF for other files used in Linux containers
8+
Dockerfile text eol=lf
9+
*.yml text eol=lf
10+
*.yaml text eol=lf
11+
*.md text eol=lf
12+
*.py text eol=lf
13+
*.ts text eol=lf
14+
*.tsx text eol=lf
15+
*.js text eol=lf
16+
*.jsx text eol=lf
17+
*.json text eol=lf
18+
*.css text eol=lf
19+
*.html text eol=lf
20+
*.sql text eol=lf
21+
*.ini text eol=lf
22+
*.cfg text eol=lf
23+
*.toml text eol=lf
24+
Makefile text eol=lf
25+
26+
# Binary files - do not modify
27+
*.png binary
28+
*.jpg binary
29+
*.jpeg binary
30+
*.gif binary
31+
*.ico binary
32+
*.svg binary
33+
*.woff binary
34+
*.woff2 binary
35+
*.ttf binary
36+
*.eot binary

0 commit comments

Comments
 (0)