diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000000000000000000000000000000000..dd9245645f7becd7b37cdecbba98ce1d81cb0d5b
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,6 @@
+# Set default behaviour to automatically normalize line endings.
+# this is equivalent to:
+#    core.autocrlf = input (Linux / macOS)
+#                  = true  (Windows)
+* text=auto
+