diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000000000000000000000000000000000..2d2f5a389d6848c9afa8ea52fc36c3c11aa29c7c
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,10 @@
+/.gitattributes export-ignore
+/.gitignore     export-ignore
+/.github        export-ignore
+/.php_cs.dist   export-ignore
+/.travis.yml    export-ignore
+/build.xml      export-ignore
+/phpunit.xml    export-ignore
+/tests          export-ignore
+
+*.php diff=php
diff --git a/ChangeLog.md b/ChangeLog.md
index 42804e6ef68c320c6f1dbcf144ec94f27de33490..e6b86315c1c7ae23d9527fe1e33683de57937604 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -2,6 +2,10 @@
 
 All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
 
+## [3.0.5] - 2023-03-01
+
+* No code changes, only updated `.gitattributes` to not export non-essential files.
+
 ## [3.0.4] - 2023-05-07
 
 ### Changed
@@ -59,6 +63,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
 
 * This component is no longer supported on PHP 5.6
 
+[3.0.5]: https://github.com/sebastianbergmann/diff/compare/3.0.4...3.0.5
 [3.0.4]: https://github.com/sebastianbergmann/diff/compare/3.0.3...3.0.4
 [3.0.3]: https://github.com/sebastianbergmann/diff/compare/3.0.2...3.0.3
 [3.0.2]: https://github.com/sebastianbergmann/diff/compare/3.0.1...3.0.2