Browse Source

refactor: git config core.autocrlf以库模板形式,不需要全局配置

ZuoJiangtao 2 years ago
parent
commit
7944e71ed6
1 changed files with 11 additions and 1 deletions
  1. 11 1
      .gitattributes

+ 11 - 1
.gitattributes

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