Skip to content

Commit 7944e71

Browse files
Zuojiangtaosendya
authored andcommitted
refactor: git config core.autocrlf以库模板形式,不需要全局配置
1 parent e852ec1 commit 7944e71

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.gitattributes

+11-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
public/* linguist-vendored
1+
public/* linguist-vendored
2+
3+
# Automatically normalize line endings (to LF) for all text-based files.
4+
* text=auto eol=lf
5+
6+
# Declare files that will always have CRLF line endings on checkout.
7+
*.{cmd,[cC][mM][dD]} text eol=crlf
8+
*.{bat,[bB][aA][tT]} text eol=crlf
9+
10+
# Denote all files that are truly binary and should not be modified.
11+
*.{ico,png,jpg,jpeg,gif,webp,svg,woff,woff2} binary

0 commit comments

Comments
 (0)