Last active
March 7, 2017 15:00
-
-
Save danielwrobert/e02886022e3f18f95f26fe8c89a1e070 to your computer and use it in GitHub Desktop.
Git attributes to deal with differences in line endings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Deal with differences in line endings: | |
## See https://help.github.com/articles/dealing-with-line-endings/ | |
# Set the default behavior, in case people don't have core.autocrlf set. | |
* text=auto | |
# Explicitly declare text files you want to always be normalized and converted | |
# to native line endings on checkout. | |
*.c text | |
*.h text | |
# Declare files that will always have CRLF line endings on checkout. | |
*.sln text eol=crlf | |
# Denote all files that are truly binary and should not be modified. | |
*.png binary | |
*.jpg binary | |
*.svg binary | |
*.md binary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment