Add .gitattributes file.
Merging with upstream.