-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy path.gitattributes
More file actions
22 lines (20 loc) · 694 Bytes
/
.gitattributes
File metadata and controls
22 lines (20 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This file is necessary for Windows automatic installation compatibility.
# It ensures shell scripts have correct LF line endings when cloned on Windows,
# preventing "bad interpreter" errors when running install scripts in WSL or Git Bash.
#
# Normalize line endings to LF on checkin, native on checkout
* text=auto
# Explicitly declare text files
*.ts text
*.js text
*.json text
*.json5 text
*.md text
*.yaml text eol=lf
*.yml text eol=lf
# Exclude workflow files from normalization to prevent CI issues
.github/workflows/* -text
# Declare script files with platform-specific line endings
# Shell scripts: LF (Unix), PowerShell scripts: CRLF (Windows)
*.sh text eol=lf
*.ps1 text eol=crlf