diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..d56abbf30
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text=auto eol=lf