Skip to content

Instantly share code, notes, and snippets.

@sloriot
Created December 3, 2012 16:53
Show Gist options
  • Select an option

  • Save sloriot/4196282 to your computer and use it in GitHub Desktop.

Select an option

Save sloriot/4196282 to your computer and use it in GitHub Desktop.
better .gitattributes
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto
# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.cpp text
*.c text
*.h text
# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
*.bat text eol=crlf
*.nsh text eol=crlf
*.vcproj text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.gif binary
*.bmp binary
*.pdf binary
*.jpeg binary
*.doc binary
*.mws binary
*.odp binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment