wangxi 3 周之前
父節點
當前提交
89ea7a514b
共有 1 個文件被更改,包括 4 次插入0 次删除
  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