Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
88 lines (87 loc) · 2.03 KB
/
Copy path.gitattributes
File metadata and controls
88 lines (87 loc) · 2.03 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# =========================================
# Git Attributes
# Purpose: Normalize line endings & file behavior
# Platform: Windows + IDEA + CLI
# -----------------------------------------
# 默认规则:所有文本文件统一 LF
* text=auto eol=lf
# Windows脚本(必须 CRLF)
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# Shell/Unix脚本(必须 LF)
*.sh text eol=lf
# 常见开发语言(强制 LF)
*.java text eol=lf
*.kt text eol=lf
*.go text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.jsx text eol=lf
*.tsx text eol=lf
*.vue text eol=lf
*.css text eol=lf
*.scss text eol=lf
*.less text eol=lf
*.html text eol=lf
*.xml text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.json text eol=lf
*.md text eol=lf
*.sql text eol=lf
# 配置/构建/容器
Dockerfile text eol=lf
*.dockerfile text eol=lf
*.env text eol=lf
*.properties text eol=lf
*.conf text eol=lf
*.ini text eol=lf
*.gradle text eol=lf
*.kts text eol=lf
*.pom text eol=lf
# Git/CI相关
.gitattributes text eol=lf
.gitignore text eol=lf
.github/* text eol=lf
.gitlab-ci.yml text eol=lf
#----------------------------------------
# Node/包管理器 Lock 文件
package-lock.json text eol=lf
yarn.lock text eol=lf
pnpm-lock.yaml text eol=lf
bun.lockb binary
# Diff优化(让 git diff 更清晰)
#-----------------------------------------
*.md diff=markdown
*.java diff=java
*.ts diff=typescript
*.tsx diff=typescript
*.js diff=javascript
*.jsx diff=javascript
*.css diff=css
*.scss diff=css
*.html diff=html
*.xml diff=xml
*.json diff=json
*.yml diff=yaml
*.yaml diff=yaml
# 二进制文件(禁止行尾转换)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.webp binary
*.ico binary
*.svg -text
*.pdf binary
*.zip binary
*.tar binary
*.gz binary
*.7z binary
*.jar binary
*.war binary
*.exe binary
*.dll binary
# Git LFS(大文件存储)
*.dump filter=lfs diff=lfs merge=lfs -text