-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitattributes
More file actions
59 lines (55 loc) · 1.14 KB
/
.gitattributes
File metadata and controls
59 lines (55 loc) · 1.14 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
# 强制所有文本文件在 Git 仓库中使用 LF 行尾
# 无论开发者本地使用什么操作系统,checkout 和 commit 始终保持 LF
# 默认:所有文件统一 LF
* text=auto eol=lf
# 明确声明文本文件类型
*.dart text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
*.json text eol=lf
*.md text eol=lf
*.arb text eol=lf
*.xml text eol=lf
*.html text eol=lf
*.css text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.swift text eol=lf
*.kt text eol=lf
*.kts text eol=lf
*.java text eol=lf
*.gradle text eol=lf
*.properties text eol=lf
*.cc text eol=lf
*.cpp text eol=lf
*.h text eol=lf
*.cmake text eol=lf
*.sh text eol=lf
*.bat text eol=lf
*.ps1 text eol=lf
*.toml text eol=lf
*.lock text eol=lf
*.gitignore text eol=lf
*.gitattributes text eol=lf
*.editorconfig text eol=lf
Makefile text eol=lf
Dockerfile text eol=lf
LICENSE text eol=lf
# 生成文件也强制 LF
*.g.dart text eol=lf
*.freezed.dart text eol=lf
# 二进制文件 - 不做行尾转换
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.svg binary
*.ttf binary
*.otf binary
*.woff binary
*.woff2 binary
*.eot binary
*.jar binary
*.jks binary
*.keystore binary