gitattributes for auto crlf normalization

This commit is contained in:
Kevin Ngo
2018-09-20 17:40:30 -07:00
parent bea3ab72f9
commit 164010d7fd
2 changed files with 59 additions and 29 deletions

30
.gitattributes vendored Normal file
View File

@@ -0,0 +1,30 @@
# FIX CRLF always when developer has not set
# Linux/Mac: git config --global core.autocrlf input
# Windows: git config --global core.autocrlf true
# Auto detect text files and perform LF normalization
* text=auto
* eol=lf
*.js text
*.html text
*.npmignore text
*.md text
.ackrc text
.gitattributes text
.gitignore text
.jshintrc text
.nojekyll text
.travis.yml text
LICENSE text
# Avoid creation of unnecessary big commit objects
# For these files we do not want to see text diff for
*.min.* binary minified
*js.map* binary
*.svg binary
*.mtl binary
*.obj binary
*.jpg binary
*.jpeg binary
*.png binary
*.wav binary