Skip to content

Instantly share code, notes, and snippets.

@danielwrobert
Last active March 7, 2017 15:00
Show Gist options
  • Save danielwrobert/e02886022e3f18f95f26fe8c89a1e070 to your computer and use it in GitHub Desktop.
Save danielwrobert/e02886022e3f18f95f26fe8c89a1e070 to your computer and use it in GitHub Desktop.
Git attributes to deal with differences in line endings
## 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