diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..443178f3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +# +# Exclude these files from release archives. +# This will also make them unavailable when using Composer with `--prefer-dist`. +# https://blog.madewithlove.be/post/gitattributes/ +# +/.gitattributes export-ignore +/.gitignore export-ignore +/phpcs.xml export-ignore +/phpstan.neon export-ignore +/phpstanbootstrap.php export-ignore +/phpunit.xml export-ignore +/.github export-ignore +/scripts export-ignore +/tests export-ignore + +# +# Auto detect text files and perform LF normalization +# https://pablorsk.medium.com/be-a-git-ninja-the-gitattributes-file-e58c07c9e915 +# +* text=auto + +*.php text