Add .gitattributes to enforce format.
Enforce line endings.
Ignore IntelliJ IDEA files.