exp: copying .gitattributes to all subrepositories

Fixes #9281

Change-Id: I8f124d71db2a0d49e96978bc477e362880f24e1a
Reviewed-on: https://go-review.googlesource.com/2074
Reviewed-by: Minux Ma <minux@golang.org>
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..d2f212e
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# Treat all files in this repo as binary, with no git magic updating
+# line endings. Windows users contributing to Go will need to use a
+# modern version of git and editors capable of LF line endings.
+#
+# We'll prevent accidental CRLF line endings from entering the repo
+# via the git-review gofmt checks.
+#
+# See golang.org/issue/9281
+
+* -text