wangxi há 3 semanas atrás
pai
commit
89ea7a514b
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      .gitattributes

+ 4 - 0
.gitattributes

@@ -0,0 +1,4 @@
+# 保证 shell 脚本在仓库内和所有检出平台都使用 LF 换行,
+# 避免 Windows CRLF 导致 Linux 服务器上 sh/dash 报 “Illegal option -”
+*.sh text eol=lf
+*.bash text eol=lf