diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000..fb9a97dba7
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+* text=auto
+*.* text eol=lf