-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
59 lines (50 loc) · 1.42 KB
/
.gitattributes
File metadata and controls
59 lines (50 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Ensure shell scripts use LF line endings on checkout across platforms
*.sh text eol=lf
# Normalize Docker wrapper scripts and entrypoint (some have no .sh extension)
docker/entrypoint.sh text eol=lf
docker/bin/* text eol=lf
# ==============================================================================
# Git Attributes - Line Ending Configuration
# ==============================================================================
# Ensures shell scripts always use LF line endings (Unix-style)
# This prevents "bad interpreter" errors on Windows checkouts
# ==============================================================================
# Default behavior: auto-detect text files and normalize line endings
* text=auto
# Shell scripts MUST use LF line endings (Unix-style)
*.sh text eol=lf
docker/bin/* text eol=lf
docker/entrypoint.sh text eol=lf
# Batch/PowerShell scripts can use CRLF (Windows-style)
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Python files use LF
*.py text eol=lf
# Configuration files use LF
*.yml text eol=lf
*.yaml text eol=lf
*.json text eol=lf
*.toml text eol=lf
Dockerfile text eol=lf
.dockerignore text eol=lf
# Markdown files
*.md text eol=lf
# Binary files - do not modify
*.pth binary
*.onnx binary
*.ckpt binary
*.th binary
*.gz binary
*.wav binary
*.mp3 binary
*.flac binary
*.ogg binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.ttf binary
*.woff binary
*.woff2 binary