Adds a .gitattributes file to the repository.
This file configures git to handle text files and line endings appropriately.
* Set `text=auto` to enable automatic detection of text files.
* Set `eol=lf` to enforce Unix-style line endings for text files.