diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..6e573c3f
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+# 将换行符设置为lf
+* text eol=lf