-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitattributes
66 lines (59 loc) · 1.51 KB
/
.gitattributes
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
### Java/Kotlin/Spring/Vert.x 项目常用 .gitattributes 模板 ###
### GitHub地址: https://github.com/yanwenkun/git-ignore-and-attributes-for-java ###
### 整理者: code@yanwk.fun ###
### 版本: 20200225-1 ###
# 参考手册: https://git-scm.com/docs/gitattributes
# 该行表示 Git 将自动判断文件是【纯文本】还是【二进制】
# 并将所有【纯文本】统一为 LF 换行符(以下显式指定的扩展名除外)
# 如果用于 Java 以外的项目,请视情况修改为默认方式:
# * text=auto
* text=auto eol=lf
# 举例说明:
# text 表示将所有 .adoc 扩展名的文件视为纯文本文件
# eol=lf 表示强制以 LF(即 \n) 作为换行符
*.adoc text eol=lf
# 指定 CRLF 换行符
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.bat text eol=crlf
# 指定 LF 换行符
*.conf text eol=lf
*.css text eol=lf
*.gradle text eol=lf
*.htm text eol=lf
*.html text eol=lf
*.java text eol=lf
*.js text eol=lf
*.json text eol=lf
*.jsp text eol=lf
*.kt text eol=lf
*.kts text eol=lf
*.map text eol=lf
*.md text eol=lf
*.properties text eol=lf
*.sh text eol=lf
*.ts text eol=lf
*.xml text eol=lf
# 二级制文件不考虑行尾,不考虑 diff
*.doc binary
*.docx binary
*.eot binary
*.gif binary
*.jpg binary
*.png binary
*.svg binary
*.ttf binary
*.woff binary
*.woff2 binary
*.xls binary
*.xlsx binary
*.class binary
*.dll binary
*.ear binary
*.gz binary
*.jar binary
*.so binary
*.tar binary
*.war binary
*.xz binary
*.zip binary