First of all….what’s a .gitattibutes file?
According to git site:
A
gitattributes
file is a simple text file that givesattributes
to pathnames.
The good thing os that you can use a generator to automatic create your .gittatribute file. in This Link you will find a tool to generate the code. just type Unity in the field and copy the content.
The next step is to create an text file in the root of you repo, paste the content, save the file as .gitattribute and commit to you repository.
1 – creating a text file. I love Sublime text to do this kind of thing. Paste the content.
2 – Save in the root folder as .gitattributes.
That’s it! just commit the file to your repo and you are good to go.