diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..d61cfa16
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,6 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+*.txt text eof=lf
+*.js  text eof=lf
+*.cs  diff=csharp