diff --git a/.gitattributes b/.gitattributes index b33d9d37..ad29a01a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,4 @@ -# 所有文本文件的行结束符为: 换行符 +# 文件的行尾自动转换 +# 如果是文本文件,则在文件入 Git 库时,行尾自动转换为 LF +# 如果已经在入 Git 库中的文件的行尾是 GRLF , 则文件在入 Git 库时,不再转换为 LF * text=auto \ No newline at end of file