-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
50 lines (46 loc) · 1.31 KB
/
.gitattributes
File metadata and controls
50 lines (46 loc) · 1.31 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
# ========================================
# Text: Enforce Unix LF
# ========================================
* text=auto eol=lf
# Common text formats (explicit, not strictly required under the rule above)
*.md text eol=lf
*.txt text eol=lf
*.py text eol=lf
*.sh text eol=lf
*.bash text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.toml text eol=lf
*.json text eol=lf
*.ini text eol=lf
*.cfg text eol=lf
*.env text eol=lf
*.gitignore text eol=lf
.gitattributes text eol=lf
# ========================================
# Binary files (Git usually detects automatically)
# ========================================
*.png -text
*.jpg -text
*.jpeg -text
*.gif -text
*.wav -text
*.mp3 -text
*.mp4 -text
*.zip -text
*.tar -text
*.gz -text
# ========================================
# Jupyter Notebooks
# ========================================
# Option 1: if you have jupyternotebook diff driver configured
# *.ipynb diff=jupyternotebook
# Option 2: if you do NOT, leave them binary-like to avoid noisy diffs
*.ipynb -text
# ========================================
# Optional: Git LFS (uncomment when using)
# ========================================
# *.mp4 filter=lfs diff=lfs merge=lfs -text
# *.mp3 filter=lfs diff=lfs merge=lfs -text
# *.zip filter=lfs diff=lfs merge=lfs -text
# *.png filter=lfs diff=lfs merge=lfs -text