-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
44 lines (39 loc) · 1.08 KB
/
Copy path.gitattributes
File metadata and controls
44 lines (39 loc) · 1.08 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
# Git 属性配置
# 文档: https://git-scm.com/docs/gitattributes
# 默认所有文本文件统一用 LF 行尾,Windows checkout 也强制 LF,避免 CRLF/LF 混用导致 lint 与 diff 噪音
* text=auto eol=lf
# 显式声明为文本(对某些扩展名做强化)
*.py text eol=lf
*.js text eol=lf
*.vue text eol=lf
*.ts text eol=lf
*.json text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.md text eol=lf
*.css text eol=lf
*.html text eol=lf
*.sh text eol=lf
*.toml text eol=lf
*.ini text eol=lf
Dockerfile text eol=lf
# 二进制文件,git 不做行尾转换与 merge 冲突标记
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg text eol=lf
*.pdf binary
*.zip binary
*.gz binary
*.tar binary
*.db binary
*.sqlite binary
*.sqlite3 binary
# GitHub linguist 语言检测修正(避免把 fixtures 误统计进主要语言)
backend/data/pilot/**/*.json linguist-vendored
backend/docs/openapi.json linguist-generated
# 导出时忽略(若用 git archive 分发包)
.github/CODEOWNERS export-ignore
.editorconfig export-ignore