diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000000000000000000000000000000000..5527e30a25aae3b76e6d758a98e88be40efd074f
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,7 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text=auto
+*.asciidoc text eol=lf
+Makefile eol=lf
+*.xslt text eol=lf
+*.xml text eol=lf
+