diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000000000000000000000000000000000..456e49e990094033c42c86cedc1801edd2d3d159
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,4 @@
+* eol=lf
+*.bat eol=crlf
+*.sh eol=lf
+.git* export-ignore