Skip to content

Instantly share code, notes, and snippets.

@a-r-m-i-n
Last active July 19, 2018 09:25
Show Gist options
  • Save a-r-m-i-n/c0fe55fe2fb25cd44772 to your computer and use it in GitHub Desktop.
Save a-r-m-i-n/c0fe55fe2fb25cd44772 to your computer and use it in GitHub Desktop.
.gitattributes to force LF for all text files
# Autodetect text files
* text=auto
# Force the following filetypes to have unix eols, so Windows does not break them
*.* text eol=lf
# Force images/fonts to be handled as binaries
*.jpg binary
*.jpeg binary
*.gif binary
*.png binary
*.t3x binary
*.t3d binary
*.exe binary
*.data binary
*.ttf binary
*.eof binary
*.eot binary
*.swf binary
*.mov binary
*.mp4 binary
*.mp3 binary
*.ogg binary
*.flv binary
@CMCDragonkai
Copy link

There are also hidden files and files without . in it at all. They could be text files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment