Add git config option to automatically convert CRLF to LF (#8122)

This commit is contained in:
Michael Goderbauer 2017-02-14 10:21:33 -08:00 committed by GitHub
parent f903a1c841
commit 769646218a
4 changed files with 233 additions and 208 deletions

25
.gitattributes vendored Normal file
View File

@ -0,0 +1,25 @@
# Auto detect text files and perform LF normalization
* text=auto
# Always perform LF normalization on these files
*.dart text
*.gradle text
*.html text
*.java text
*.json text
*.md text
*.py text
*.sh text
*.txt text
*.xml text
*.yaml text
# Make sure that these Windows files always have CRLF line endings in checkout
*.bat text eol=crlf
*.ps1 text eol=crlf
# Never perform LF normalization on these files
*.ico binary
*.jar binary
*.png binary
*.zip binary