Add .gitattributes (#310)

This makes life much easier when working on Windows.
And makes sure all of the codes are committed with LF as EOL char.
This commit is contained in:
Kfir Hadas 2017-07-26 18:57:46 +03:00 committed by GitHub
parent dc627bf398
commit 1fa3e6ae46
1 changed files with 36 additions and 0 deletions

36
.gitattributes vendored Normal file
View File

@ -0,0 +1,36 @@
#
# Makes sure all files detected as text have LF as the EOL character,
# and leaves all files detected as binary untouched.
#
* text=auto eol=lf
#
# Text files
#
# Example
# *.ext text
#
# Binary files (binary is a macro for -text -diff)
#
# Minified web files
*.min.css binary
*.min.js binary
# Images
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
# Fonts
*.svg binary
*.ttf binary
*.woff binary
*.woff2 binary
*.eot binary
*.otf binary