-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy path.gitattributes
More file actions
52 lines (46 loc) · 1.21 KB
/
Copy path.gitattributes
File metadata and controls
52 lines (46 loc) · 1.21 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
# 文本文件统一 LF 行尾(跨平台一致,避免 Windows CRLF 污染 diff)
* text=auto eol=lf
# ============== Go 后端 ==============
*.go text eol=lf
go.mod text eol=lf
go.sum text eol=lf
# ============== Web 前端 ==============
*.ts text eol=lf
*.tsx text eol=lf
*.js text eol=lf
*.jsx text eol=lf
*.json text eol=lf
*.html text eol=lf
*.css text eol=lf
*.md text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
# ============== Shell / Windows 脚本 ==============
*.sh text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# ============== 锁文件 / 大文件:当二进制处理,diff 不展开 ==============
package-lock.json -diff
go.sum -diff
# ============== 自动生成 / 第三方代码:从 GitHub 语言统计里排除 ==============
web/src/routeTree.gen.ts linguist-generated=true
web/src/components/ui/** linguist-vendored=true
# ============== 二进制 ==============
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.ico binary
*.svg text
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.eot binary
*.pdf binary
*.zip binary
*.gz binary
*.tar binary
*.7z binary