-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitattributes
More file actions
45 lines (40 loc) · 1 KB
/
Copy path.gitattributes
File metadata and controls
45 lines (40 loc) · 1 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
# ==============================================================================
# Git Attributes - Global LF Normalization & Asset Protection
# ==============================================================================
# 1. Default Handling: Auto-detect text files and enforce Unix-style LF
* text=auto eol=lf
# 2. Plain Text & Markdown (Obsidian Vault Essentials)
*.md text eol=lf
*.txt text eol=lf
*.csv text eol=lf
# 3. Development & Scripting Languages
*.py text eol=lf
*.sh text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# 4. Web, Configuration, and Styling
*.css text eol=lf
*.js text eol=lf
*.jsx text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.json text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.xml text eol=lf
*.html text eol=lf
# 5. Binary Assets Protection (Explicitly prevent line-ending corruption)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.ico binary
*.pdf binary
*.mp3 binary
*.mp4 binary
*.mkv binary
*.wav binary
*.zip binary
*.tar.gz binary