diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000000000000000000000000000000000..f7531d42303c5b39e626bebfc5b614e410adadf7
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,7 @@
+.git*            export-ignore
+.gitattributes  -export-ignore
+
+config*          eol=lf         whitespace=indent-with-non-tab
+git-*            eol=lf         whitespace=indent-with-non-tab
+tips             eol=lf         whitespace=indent-with-non-tab
+setup-*          eol=lf         whitespace=indent-with-non-tab