shish 2 mesi fa
parent
commit
0db56b8ca8
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. 13 0
      .gitattributes

+ 13 - 0
.gitattributes

@@ -3,3 +3,16 @@
 /.scrutinizer.yml   export-ignore
 /.travis.yml        export-ignore
 /docs               export-ignore
+
+# 统一换行符,避免仅 CRLF/LF 差异被 Git 识别为修改
+* text=auto
+
+*.php text eol=lf
+*.js text eol=lf
+*.json text eol=lf
+*.md text eol=lf
+*.yml text eol=lf
+*.yaml text eol=lf
+*.xml text eol=lf
+*.sql text eol=lf
+