-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
45 lines (37 loc) · 1016 Bytes
/
Copy path.gitattributes
File metadata and controls
45 lines (37 loc) · 1016 Bytes
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 属性:统一换行符、二进制标记、diff 驱动
# 文本文件统一 LF
* text=auto eol=lf
# Python 源码
*.py text eol=lf diff=python
# Notebook 在 PR diff 中展开产出
*.ipynb text eol=lf
# Windows 上的脚本:保留 CRLF
*.bat text eol=crlf
*.ps1 text eol=crlf
*.cmd text eol=crlf
# Shell 脚本:LF
*.sh text eol=lf
# 文档
*.md text eol=lf
*.txt text eol=lf
# 配置
*.yml text eol=lf
*.yaml text eol=lf
*.toml text eol=lf
*.json text eol=lf
*.lock text eol=lf linguist-generated=true
# 二进制
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.pdf binary
*.zip binary
*.tar.gz binary
*.whl binary
*.egg-info linguist-generated=true
# 语言统计:把 vendor/ 之类排除
vendor/ linguist-vendored=true
data/chroma/ linguist-vendored=true
data/cache/ linguist-vendored=true