-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
59 lines (59 loc) · 1.94 KB
/
.gitattributes
File metadata and controls
59 lines (59 loc) · 1.94 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
# ─── Text file normalization ───
* text=auto
# ─── Enforce line endings for scripts ─
*.py text eol=lf
*.sh text eol=lf
# ─── Treat specific files as binary ─
*.png filter=lfs diff=lfs merge=lfs -text
*.PNG binary
*.jpg filter=lfs diff=lfs merge=lfs -text
*.JPG binary
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.gif binary
*.webp filter=lfs diff=lfs merge=lfs -text
*.pth binary
*.pt binary
*.npz binary
*.npy binary
# No diff on large JSON data dumps
*.json diff=none
# ─── Merge/Diff Behavior ───
*.lock merge=ours
*.json diff=none
*.csv diff=none
*.tsv diff=none
# ─── GitHub Linguist Overrides ───
# Don't count Jupyter notebooks as JSON, count them correctly
*.ipynb linguist-language=Jupyter\ Notebook
# Mark documentation folders as documentation, not source
docs/** linguist-documentation
examples/** linguist-documentation
notebooks/** linguist-documentation
# Explicitly classify config/markup languages
*.yml linguist-language=YAML
*.yaml linguist-language=YAML
*.toml linguist-language=TOML
*.ini linguist-language=INI
*.cfg linguist-language=INI
# Ignore data folders from language stats
data/** linguist-vendored
datasets/** linguist-vendored
output/** linguist-generated
checkpoints/** linguist-generated
# Mark scripts and command-line interfaces
scripts/** linguist-language=Python
bin/** linguist-language=Shell
# Custom overrides (optional)
*.md linguist-language=Markdown
*.txt linguist-language=Text
*.bat linguist-language=Batchfile
*.zip filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tar.gz filter=lfs diff=lfs merge=lfs -text
*.tar.bz2 filter=lfs diff=lfs merge=lfs -text
*.tar.xz filter=lfs diff=lfs merge=lfs -text
*.tar.lzma filter=lfs diff=lfs merge=lfs -text
*.tar.lzma filter=lfs diff=lfs merge=lfs -text
*.mkv filter=lfs diff=lfs merge=lfs -text
*.mov filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text