Skip to content

Instantly share code, notes, and snippets.

@jonfriskics
Created September 25, 2019 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonfriskics/edf18b8d29dfeedb578bfd12f67fc199 to your computer and use it in GitHub Desktop.
Save jonfriskics/edf18b8d29dfeedb578bfd12f67fc199 to your computer and use it in GitHub Desktop.
.gitattributes file to add to Project repos
# From https://help.github.com/en/articles/configuring-git-to-handle-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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment